Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] thisJoinPoint



You are right about the error being due to array types. The problem lies in
the fact that the static information in thisJoinPoint (which includes
parameter types) is generated at compile time while array types are
generated at run-time. Some array types work e.g. String[] because they are
popular while application-defined types are unlikely to have been generated
when ajc runs. If you access a non-null argument directly you will not get
the problem e.g.

      thisJoinPoint.getArgs()[3].getClass()

should yield something like "class [LParameter;". I suggest you raise a bug
on Bugzilla. It might be possible to either generate a meaningfull value at
compile-time or create it lazily at run-time.

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/



Back to the top