The following test program gives a number of tree position errors.
class Test {
void m() {
Object o = new @Deprecated Object() { };
}
}
Some are due to the issues with annotated types, which are (somewhat) to be expected, but one of the errors is distinct:
play/Test.java: end == NOPOS: encl:CLASSDEF[start:65,pos:65,end:68] this:MODIFIERS[start:-1,pos:-1,end:55]
@Deprecated()
class Test {
void m() {
Object o = new @Deprecated Object() { };
}
}
Some are due to the issues with annotated types, which are (somewhat) to be expected, but one of the errors is distinct:
play/Test.java: end == NOPOS: encl:CLASSDEF[start:65,pos:65,end:68] this:MODIFIERS[start:-1,pos:-1,end:55]
@Deprecated()