-
Bug
-
Resolution: Unresolved
-
P4
-
repo-amber
-
generic
-
generic
Compiling this code and then viewing javap output:
public class X {
@interface Annot {}
@Annot
public static void main(String args []) {
@Annot
void goo(@Annot int x) {
}
void foo() {
@Annot
void zoo() {}
}
}
}
It appears that @Annot annotation makes it to the class file only (i) as applied to the main() method (ii) as parameter annotation on the parameter of goo()
The other two instances are silently dropped.
public class X {
@interface Annot {}
@Annot
public static void main(String args []) {
@Annot
void goo(@Annot int x) {
}
void foo() {
@Annot
void zoo() {}
}
}
}
It appears that @Annot annotation makes it to the class file only (i) as applied to the main() method (ii) as parameter annotation on the parameter of goo()
The other two instances are silently dropped.