Re: Field order from traits

2019-12-02 Thread Cédric Champeau
Independently of reflection or not, the compiler should be reproducible. So same sources -> same output, whatever the OS, whatever the time. This is important for trust and cache-ability. On this specific issue, the default mechanism is to use ASM which is reproducible. Le lun. 2 déc. 2019 à 10:06

Re: Field order from traits

2019-12-02 Thread Andres Almiray
I need consistent field order to get around this problem -> https://github.com/gradle/gradle/issues/11522 I'm aware that reflection does not guarantee order. I was under the impression that the compiler would use the AST which would have the correct order but that only works if the trait is compil