Project: AspectJ
Bug 132130 Missing relationship for declare @method when annotating a co-located method
Reported: 2006-03-16 06:24:40 | Status: resolved fixed

For this program (when all entered into *one* file) I don't see a marker from the declare to the annotated method. If the annotated method is in another file, I do... (not sure if fields/ctors/types are also a problem..) public aspect basic { declare @method: * debit(..): @Secured(role="supervisor"); } class BankAccount { public void debit(long accId,long amount) { } } @interface Secured { String role(); }

Files changed in fix:
ajde/testsrc/org/aspectj/ajde/AsmDeclarationsTest.java ajde/testsrc/org/aspectj/ajde/AsmRelationshipsTest.java ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java asm/src/org/aspectj/asm/internal/ProgramElement.java tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java