mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
13 lines
316 B
Java
13 lines
316 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 4973504
|
|
* @summary Compiler allows Inherited meta-attribute on local variable declaration.
|
|
* @author gafter
|
|
*
|
|
* @compile/fail/ref=WrongTarget2.out -XDrawDiagnostics WrongTarget2.java
|
|
*/
|
|
|
|
import java.lang.annotation.Inherited;
|
|
class Field {{
|
|
@Inherited int vec;
|
|
}}
|