I would like to annotite java package using simple annotation:
@Target(ElementType.PACKAGE) public @interface Related { int apiVersion() default 0; } However when I try to add it to any package I've got compilation error
Error:(1, 14) java: cannot find symbol symbol: class Related location: package com.test.xxx Any help appreciated!
EDIT
After searching a bit I found also this kind of error
Error:(1, 1) java: package annotations should be in file package-info.java
Error:(1, 1) java: package annotations should be in file package-info.java