Groovy 5.0.7 and getter naming convention
Adrien Guichard <[email protected]> Fri, 17 Jul 2026 16:05:39 +0200
| Newsgroups | gmane.comp.lang.groovy.user |
|---|---|
| Message-ID | <CAJHGhwBiuJ0FWbegYdFtBu=FDOmEqR_DaA-51Xg8k3vagFBxXQ@mail.gmail.com> |
--000000000000d0df5a0656cf0d93 Content-Type: text/plain; charset="UTF-8" Hello, We are porting our framework to Grails 8.0.0(-M3), which defaults to Groovy 5.0.7. This framework generates getters from an AST Transformation at compile time. Symbols generated are then used into some DSLs to compose elements of our apps. There is an exception when launching our test app if the name of the getters ends with an '_'; like in "getFirstName*_*()", if I replace the '_' with another char, it fails after (missing symbols, because I use 'someone.firstName_' in the code). Is there any restriction regarding the naming conventions for getters in Groovy 5 ? If not, I will dig further and fill an eventual bug report if needed. Regards -- Adrien Guichard + 33 6 10 78 75 88 Taack / Citel / Obsta 29 Boulevard Edgar Quinet 75014 Paris --000000000000d0df5a0656cf0d93 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div><span style=3D"background-color:tran= sparent">Hello,</span></div><div><span style=3D"background-color:transparen= t"><br></span></div><div><br></div><div><span style=3D"background-color:tra= nsparent">We are=C2=A0porting our framework to Grails 8.0.0(-M3), which def= aults to Groovy 5.0.7.</span></div><div><br></div><div>This framework=C2=A0= generates getters from an AST Transformation at compile time. Symbols gener= ated are then used into some DSLs to compose elements of our apps.</div><di= v><br></div><div>There is an exception when launching our test app if the n= ame of the getters ends with an '_'; like in "getFirstName<b>_= </b>()", if I replace the '_' with another char, it fails afte= r (missing symbols, because I use 'someone.firstName_' in the code)= .</div><div><br></div><div>Is there any restriction regarding the naming co= nventions for getters in Groovy 5 ?</div><div><br></div><div>If not, I will= dig further and fill an eventual bug report if needed.</div><div><br></div= ><div><br></div><div>Regards</div><div><br></div><span class=3D"gmail_signa= ture_prefix">--=C2=A0=C2=A0</span><br><div dir=3D"ltr" class=3D"gmail_signa= ture" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div dir=3D"ltr">= Adrien Guichard<div>+ 33 6 10 78 75 88<br><div>Taack / Citel / Obsta</div><= div>29 Boulevard Edgar Quinet<br></div><div><div>75014 Paris<br></div></div= ></div></div></div></div></div> </div> --000000000000d0df5a0656cf0d93--