Wed, 23 Oct 2013 23:20:32 -0400
8006732: support correct bytecode storage of type annotations in multicatch
Summary: Fix issue with annotations being added before attribution, which causes multicatch not to work right and several tests to fail.
Reviewed-by: jfranck, jjg
jjg@1521 | 1 | /* |
jjg@1521 | 2 | * @test /nodynamiccopyright/ |
jjg@1521 | 3 | * @bug 8006775 |
jjg@1521 | 4 | * @summary Import clauses cannot use annotations. |
jjg@1521 | 5 | * @author Werner Dietl |
jjg@2134 | 6 | * @ignore |
jjg@1521 | 7 | * @compile/fail/ref=AnnotatedImport.out -XDrawDiagnostics AnnotatedImport.java |
jjg@1521 | 8 | */ |
jjg@1521 | 9 | |
jjg@2134 | 10 | import java.lang.annotation.*; |
jjg@1521 | 11 | import java.@A util.List; |
jjg@1521 | 12 | import @A java.util.Map; |
jjg@1521 | 13 | import java.util.@A HashMap; |
jjg@1521 | 14 | |
jjg@1521 | 15 | class AnnotatedImport { } |
jjg@1521 | 16 | |
jjg@2134 | 17 | @Target(ElementType.TYPE_USE) |
jjg@1521 | 18 | @interface A { } |