Project: AspectJ
Bug 116755 PointcutParser is not configurable
Reported: 2005-11-16 20:19:54 | Status: resolved fixed

I'm testing the reflection and weaver tools APIs. When I using following code: PointcutParser parse = new PointcutParser(); String expr = "call(public * main.hello(..)"; PointcutExpression pex = parse.parsePointcutExpression(expr); Whenever I use a full qualified class name in pointcut expression, an exception is throwed out: java.lang.IllegalArgumentException: warning no match for this type name: obj [Xlint:invalidAbsoluteTypeName] I try to turn off this Lint exception. But it seems I must access to world field of PointcutParser. This is inconvenient because world field is not exposed by PointcutParser. The existing PointcutParser interface implicitly creates a World and does not allow any configuration including classpath or lint. But developers may need this kind of control.

Files changed in fix:
tests/java5/ataspectj/annotationGen/RuntimePointcuts.java tests/java5/reflection/ReflectOnAjcCompiledPointcuts.java tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java weaver/src/org/aspectj/weaver/bcel/BcelWorld.java weaver/src/org/aspectj/weaver/internal/tools/TypePatternMatcherImpl.java weaver/src/org/aspectj/weaver/ltw/LTWWorld.java weaver/src/org/aspectj/weaver/ltw/LTWeaver.java weaver/src/org/aspectj/weaver/reflect/AnnotationFinder.java weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegate.java weaver/src/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateFactory.java weaver/src/org/aspectj/weaver/reflect/ReflectionBasedResolvedMemberImpl.java weaver/src/org/aspectj/weaver/reflect/ReflectionShadow.java weaver/src/org/aspectj/weaver/reflect/ReflectionVar.java weaver/src/org/aspectj/weaver/reflect/ReflectionWorld.java weaver/src/org/aspectj/weaver/tools/PointcutParser.java weaver/src/org/aspectj/weaver/tools/TypePatternMatcher.java weaver/testsrc/org/aspectj/weaver/tools/PointcutParserTest.java weaver/testsrc/org/aspectj/weaver/tools/ToolsTests.java weaver/testsrc/org/aspectj/weaver/tools/TypePatternMatcherTest.java weaver5/java5-src/org/aspectj/weaver/reflect/Java15AnnotationFinder.java weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java