[GitHub] [groovy-website] yanimorsliGit opened a new pull request #18: Create README.FR.ADOC

2019-12-01 Thread GitBox
yanimorsliGit opened a new pull request #18: Create README.FR.ADOC URL: https://github.com/apache/groovy-website/pull/18 it's translation of the README file in French. This is an automated message from the Apache Git Service.

Field order from traits

2019-12-01 Thread Andres Almiray
Hello everyone, I've encountered a "problem" when using traits. Say you have a couple of traits that define fileds in the following order @CompileStatic trait CompartmentIdAwareTrait implements PathAware, ProjectAware { @Internal final Property compartmentId = project.objects.property(Strin

RE: Field order from traits

2019-12-01 Thread Milles, Eric (TR Tech, Content & Ops)
Trait fields for properties are added by TraitComposer as it encounters the getter methods (around line 250). Methods are processed in the order returned from ClassNode#getDeclaredMethods, which uses a HashSet. From: Andres Almiray Sent: Sunday, December 1, 2019 12:02 PM To: Groovy_Developers

Re: Field order from traits

2019-12-01 Thread Remko Popma
On Mon, Dec 2, 2019 at 9:31 Milles, Eric (TR Tech, Content & Ops) < eric.mil...@thomsonreuters.com> wrote: > Trait fields for properties are added by TraitComposer as it encounters > the getter methods (around line 250). Methods are processed in the order > returned from ClassNode#getDeclaredMeth

Re: Field order from traits

2019-12-01 Thread Jochen Theodorou
On 02.12.19 01:51, Remko Popma wrote: On Mon, Dec 2, 2019 at 9:31 Milles, Eric (TR Tech, Content & Ops) mailto:eric.mil...@thomsonreuters.com>> wrote: Trait fields for properties are added by TraitComposer as it encounters the getter methods (around line 250).  Methods are processe

Re: Field order from traits

2019-12-01 Thread Jochen Theodorou
Hi Andres, I think your expectations are wrong. To understand why it is important I wonder though what you need it for bye Jochen On 01.12.19 19:02, Andres Almiray wrote: Hello everyone, I've encountered a "problem" when using traits. Say you have a couple of traits that define fileds in the