use*_*796 5 java types annotations
package com.company;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.List;
public class Main {
@Target(ElementType.TYPE_USE)
@Retention(RetentionPolicy.RUNTIME)
public @interface A {}
public static void main(String[] args) {
}
private List<@A Integer> integers1;
private List<@A java.lang.Integer> integers2;
}
Run Code Online (Sandbox Code Playgroud)
我收到
private List<@A java.lang.Integer> integers2;
错误:
错误:(20, 21) java: 找不到符号符号:类 java
位置:类 com.company.Main
是程序中的bug吗?