Bug 145086 - NPE when weak reference set in signature
Summary: NPE when weak reference set in signature
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.5.2   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-02 11:35 EDT by Ron Bodkin CLA
Modified: 2012-04-03 15:34 EDT (History)
0 users

See Also:


Attachments
Test and fix of NPE on set of weak reference (ugh) (4.28 KB, patch)
2006-06-02 11:36 EDT, Ron Bodkin CLA
aclement: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Bodkin CLA 2006-06-02 11:35:11 EDT
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)
Comment 1 Ron Bodkin CLA 2006-06-02 11:36:29 EDT
Created attachment 43360 [details]
Test and fix of NPE on set of weak reference (ugh)
Comment 2 Andrew Clement CLA 2006-06-03 04:24:11 EDT
fix committed