Community
Participate
Working Groups
The following test case breaks with ajc. Interestingly, in a corresponding project AJDT shows the correct two annotations on the field, but a runtime reflection test for the presence of the annotation fails. The annotation has runtime retention and a more direct declare annotation passes the test. See attached failing test case.
Created attachment 60506 [details] Failing test case
work into testcase and investigate behaviour for 1.5.4
test and fix committed. thanks for the testcase. The problem was that Deprecated was 'special' in that it was in the java.lang package and some crappy code decided to shorten special type signatures by trimming off the java.lang, thinking we'd continue to realise it was special. We didn't and when it could not be resolved due to not having a package prefix we failed to match Ljava/lang/Deprecated; against just Deprecated and didn't add the other annotation from the second declare @field.