Closed GoogleCodeExporter closed 8 years ago
It was on the TODO list. It is now implemented.
Original comment by stab.hac...@gmail.com
on 26 Jun 2010 at 10:32
The following code:
[Target({ ElementType.FIELD, ElementType.PARAMETER })]
[Retention(RetentionPolicy.RUNTIME)]
public interface Demo : Annotation {
}
[StaticClass]
public class Main {
public static void main( [Deprecated][Demo] String[] args){
System.out.println("DONE");
}
}
generate de "Deprecated" annotation, but is not generating the "Demo"
annotation.
Original comment by ice.ta...@gmail.com
on 27 Jun 2010 at 10:53
I compiled your code and the annotations are both generated.
Original comment by stab.hac...@gmail.com
on 27 Jun 2010 at 12:16
I found the issue, the annotations are not being generated on constructors,
delegates and interfaces for example:
[Target({ ElementType.FIELD, ElementType.PARAMETER })]
[Retention(RetentionPolicy.RUNTIME)]
public interface Demo : Annotation {
}
delegate void D([Deprecated][Demo] int i);
public interface Test {
void foo([Deprecated][Demo] int i);
}
public class Main {
public Main( [Deprecated][Demo] String[] args){
System.out.println("DONE CONSTRUCTOR");
}
public static void main( [Deprecated][Demo] String[] args){
System.out.println("DONE");
}
}
only the static main method is annotated.
Original comment by ice.ta...@gmail.com
on 3 Jul 2010 at 1:42
It should work in all cases now.
Original comment by stab.hac...@gmail.com
on 4 Jul 2010 at 11:53
Original issue reported on code.google.com by
ice.ta...@gmail.com
on 26 Jun 2010 at 3:57