Mon, 15 Feb 2010 18:20:57 -0800
6634138: Source generated in last round not compiled
Reviewed-by: jjg
darcy@494 | 1 | /* |
darcy@494 | 2 | * Copyright 2010 Sun Microsystems, Inc. All Rights Reserved. |
darcy@494 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
darcy@494 | 4 | * |
darcy@494 | 5 | * This code is free software; you can redistribute it and/or modify it |
darcy@494 | 6 | * under the terms of the GNU General Public License version 2 only, as |
darcy@494 | 7 | * published by the Free Software Foundation. |
darcy@494 | 8 | * |
darcy@494 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
darcy@494 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
darcy@494 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
darcy@494 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
darcy@494 | 13 | * accompanied this code). |
darcy@494 | 14 | * |
darcy@494 | 15 | * You should have received a copy of the GNU General Public License version |
darcy@494 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
darcy@494 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
darcy@494 | 18 | * |
darcy@494 | 19 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
darcy@494 | 20 | * CA 95054 USA or visit www.sun.com if you need additional information or |
darcy@494 | 21 | * have any questions. |
darcy@494 | 22 | */ |
darcy@494 | 23 | |
darcy@494 | 24 | /** |
darcy@494 | 25 | * Class to exercise dependencies on the two source files generated by |
darcy@494 | 26 | * T6634138.java, foo.WrittenAfterProcessing.java and |
darcy@494 | 27 | * foo.package-info.java. |
darcy@494 | 28 | */ |
darcy@494 | 29 | public class ExerciseDependency { |
darcy@494 | 30 | public static void main(String... args) { |
darcy@494 | 31 | foo.WrittenAfterProcessing wap = new foo.WrittenAfterProcessing(); |
darcy@494 | 32 | java.lang.Package pkg = wap.getClass().getPackage(); |
darcy@494 | 33 | Deprecated d = pkg.getAnnotation(Deprecated.class); |
darcy@494 | 34 | if (d == null) |
darcy@494 | 35 | throw new RuntimeException(); |
darcy@494 | 36 | } |
darcy@494 | 37 | } |