Summary: | Null static part of thisJoinPoint | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Mohamed Mansour <mansour> |
Component: | Compiler | Assignee: | Adrian Colyer <adrian.colyer> |
Status: | REOPENED --- | QA Contact: | |
Severity: | normal | ||
Priority: | P5 | Keywords: | info |
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
Mohamed Mansour
2003-04-23 14:48:44 EDT
I can't figure out any way to avoid this error that doesn't add runtime overhead to any advice that uses thisJoinPointStaticPart. This error is so unusual that I'm doubtful it's acceptable to penalize all advice for this odd case. Note that any program which would show this bug already has the surprising behavior that a properly initialized static final field may be seen to be null. i.e. if you add to Operator the line: static final Object name = "name"; And then add to initOperands() the following: System.out.println(name); You'll see that even though name is a static final under this bizarre initialization situation it can be seen to be null. This bug is waiting for a patch to be submitted showing how it can be prevented without adding performance overhead to all advice that uses thisJoinPointStaticPart. We're not going to get to this in AJ 1.5.0. Marking as "LATER" for consideration in 1.5.1 and future release planning. The bug has not been hit by any other user in the last 2.5 years, so low priority. LATER/REMIND bugs are being automatically reopened as P5 because the LATER and REMIND resolutions are deprecated. |