Project: AspectJ
Bug 317743 import handling and type lookup issues
Reported: 2010-06-23 15:28:27 | Status: resolved fixed

Raised by Peter Melnikov on the mailing list. Two problems: 1) the binding scope being used for annotation style aspects accumulates lots of duplicate import prefixes in the SimpleScope object. 2) SimpleScope.lookupType tries the prefixes even if the type is already fully qualified. The combination of these issues causes a terrible mess. Lots of class lookup failures. Since the type cannot be 'partially qualified' it is silly to use the prefixes if the type is fully qualified.

Files changed in fix:
org.aspectj.matcher/src/org/aspectj/weaver/BindingScope.java org.aspectj.matcher/src/org/aspectj/weaver/patterns/IScope.java org.aspectj.matcher/src/org/aspectj/weaver/patterns/SimpleScope.java org.aspectj.matcher/src/org/aspectj/weaver/patterns/WildTypePattern.java org.aspectj.matcher/testsrc/org/aspectj/weaver/patterns/PatternsTests.java org.aspectj.matcher/testsrc/org/aspectj/weaver/patterns/SimpleScopeTests.java org.aspectj.matcher/testsrc/org/aspectj/weaver/patterns/TypePatternTestCase.java