Community
Participate
Working Groups
In this aspect: public aspect AJ { class X{} interface Y {} declare parents : X implements Y; declare soft : Exception : execution(void x()); void x() { throw new Exception(); } } The JDT handle for the declare soft is: =ITDTesting/src<{AJ.aj'AJ`declare soft but the AJ handle is: =ITDTesting/src<*AJ.aj'AJ`declare soft!2 (you can ignore the * and { difference because that is an artifact of JDT weaving) It looks like the count is being incremented because of the declare parents, but it should not be.
fixed. fix is in AJDT too.
The fix for this problem has uncovered two similar problems with declare warning and declare error. They also have invalid counts in them. They appear to be incrementing based on the count of declare parents (just like declare soft).
changed the title as you want it to cover more than declare parents now. Prior to the change for this bugzilla the only one defined to not share a counter was declare annotation.
That's correct. All declare declaration kinds should have their own counter. The only reason that a handle identifier will have a counter is to distinguish it from an otherwise identical handle identifier.
of course. I am just surprised this only came up now and not long ago.
fixed