Thu, 21 Feb 2013 15:27:05 +0000
8008444: Inherited generic functional descriptors are merged incorrectly
Summary: Missing call to Types.createMethodWithThrownTypes
Reviewed-by: jjg
darcy@494 | 1 | /* |
ohair@554 | 2 | * Copyright (c) 2010, Oracle and/or its affiliates. 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 | * |
ohair@554 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@554 | 20 | * or visit www.oracle.com if you need additional information or have any |
ohair@554 | 21 | * 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 | } |