Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354405 - [insight] unusual groovy constructors trip up weaving of perthis
Summary: [insight] unusual groovy constructors trip up weaving of perthis
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: LTWeaving (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: 1.6.12   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 11:59 EDT by Andrew Clement CLA
Modified: 2011-08-12 19:09 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 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)