[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ews.eclipse.technology.aspectj] Re: A question about reflection and weaver tools APIs

Thank you and Matthew for answering me. I raised this bug in this URL:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=116755


James

Andy Clement wrote:
James Gan wrote:

Hi, all

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. Could you please tell me how can I turn off this boring exception?

Thanks a lot!
James Gan


I suspect this is an oversight in the API - please raise an AspectJ bug for us to look into it.

Andy.

(ps. you will get even faster responses if you can use the mailing list rather than the newsgroup...)