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
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 6843077 8006775 |
aoqi@0 | 4 | * @summary check for Duplicate annotation value |
aoqi@0 | 5 | * @author Mahmood Ali |
aoqi@0 | 6 | * @compile/fail/ref=DuplicateAnnotationValue.out -XDrawDiagnostics DuplicateAnnotationValue.java |
aoqi@0 | 7 | */ |
aoqi@0 | 8 | import java.lang.annotation.*; |
aoqi@0 | 9 | class DuplicateAnnotationValue { |
aoqi@0 | 10 | void test() { |
aoqi@0 | 11 | new @A String(); |
aoqi@0 | 12 | } |
aoqi@0 | 13 | } |
aoqi@0 | 14 | |
aoqi@0 | 15 | @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) |
aoqi@0 | 16 | @interface A { int field(); } |