Bug 449401 - thisAspectInstance compile problem with -1.8
Summary: thisAspectInstance compile problem with -1.8
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.8.3   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: 1.8.4   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-30 17:19 EDT by Andrew Clement CLA
Modified: 2014-10-30 17:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Clement CLA 2014-10-30 17:19:03 EDT
Similar to other 'well known' local variables like thisJoinPoint, the eclipse 1.8 compiler is complaining that thisAspectInstance is not initialized when it is a variable that we (AspectJ) look after. The fix is the same as for thisJoinPoint et al - just special case this well known variable.  This did not surface in earlier testing because all the thisAspectInstance tests (in the 1.6.12 testsuite) compile with -1.5 - it is only when compiling with -1.8 that the extra checking is done.  I'm copying the 1.6.12 tests into the 1.8.4 suite and having them specify -1.8.
Comment 1 Andrew Clement CLA 2014-10-30 17:30:22 EDT
Fixed with checks in AjProblemReporter.uninitializedLocalVariable()