I've created an annotation:
@Target(ElementType.FIELD )
@Retention( RetentionPolicy.RUNTIME )
public @interface Test
{
Class something();
}
But when I call it with Integer.TYPE
(for the return type of an int), it shows the error.
public class TestA
{
@Test(Integer.TYPE)
public int id;
}