Project: AspectJ
Bug 145086 NPE when weak reference set in signature
Reported: 2006-06-02 11:35:11 | Status: resolved fixed

Simon ran into the same problem in setting the values. I will attach a patch to fix this, with test cases to properly verify it works in both cases. java.lang.NullPointerException at org.aspectj.runtime.reflect.SignatureImpl$CacheImpl.set(SignatureImpl.java:224) at org.aspectj.runtime.reflect.SignatureImpl.toString(SignatureImpl.java:57) at org.aspectj.runtime.reflect.SignatureImpl.toString(SignatureImpl.java:62)

Files changed in fix:
runtime/src/org/aspectj/runtime/reflect/SignatureImpl.java runtime/testsrc/org/aspectj/runtime/reflect/JoinPointImplTest.java runtime/testsrc/org/aspectj/runtime/reflect/SignatureTest.java