Bug 449401

Summary: thisAspectInstance compile problem with -1.8
Product: [Tools] AspectJ Reporter: Andrew Clement <aclement>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.8.3   
Target Milestone: 1.8.4   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

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()