Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354405

Summary: [insight] unusual groovy constructors trip up weaving of perthis
Product: [Tools] AspectJ Reporter: Andrew Clement <aclement>
Component: LTWeavingAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: DEVELOPMENT   
Target Milestone: 1.6.12   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Andrew Clement CLA 2011-08-10 11:59:08 EDT
in groovy constructors the uninitialized objects lie around for longer than in a normal java constructor - perthis clauses can cause attempts to pass these objects out of the ctor - and that isn't allowed until they have been initialized
Comment 1 Andrew Clement CLA 2011-08-12 19:09:28 EDT
simplest strategy for now is to avoid perthis entry weaving inside groovy constructors which avoids this funkyness.  The actual aspect that caused this has been changed to a singleton now anyway!

Groovy recognized by whether they are GroovyObjects (interface) or GroovyObjectSupports (class)