langtools/test/tools/javac/diags/examples/DuplicateAnnotation.java
changeset 13689 4d519199a6aa
parent 6149 48de3564aa13
child 14870 1a2371de04d8
equal deleted inserted replaced
13636:bee2d435e11f 13689:4d519199a6aa
     1 /*
     1 /*
     2  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2010, 2012 Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 // key: compiler.err.duplicate.annotation
    24 // key: compiler.err.duplicate.annotation
       
    25 // key: compiler.warn.source.no.bootclasspath
       
    26 // options: -source 7
    25 
    27 
    26 @interface Anno { }
    28 @interface Anno { }
    27 
    29 
    28 @Anno
    30 @Anno
    29 @Anno
    31 @Anno