Re: Compiling Java with Groovy

2025-04-10 Thread Saravanan Palanichamy
Hi Jochen thank you for your responses. I have attached an example set in my original email, Adding it here again for your reference. Some observations from your comments "foo" +"bar" This is what fails, so I am not sure if I am setting up something incorrectly. It detects + and says StringPlus

Re: Compiling Java with Groovy

2025-04-07 Thread Saravanan Palanichamy
Hello OC I didnt have to change my file names to .groovy (I just use the compilation unit to create my source unit closure (from a .java file and it works). Additionally, there are a few reg ex updates I do to the code before adding them to the source unit compilation mechanism. This lets me side

Re: Compiling Java with Groovy

2025-04-07 Thread OCsite
Jochen, > On 7. 4. 2025, at 14:00, Jochen Theodorou wrote: > I wonder though... why use Groovy to compile Java? My own use case was that I've turned big Java projects to Groovy; the only reasonable way I've found was 1. to rename all .java sources to .groovy 2. to fix things which did not compi

Re: Compiling Java with Groovy

2025-04-07 Thread Jochen Theodorou
On 06.04.25 06:59, Saravanan Palanichamy wrote: Hello Groovy users/devs I am using the Groovy compiler to compile standard Java code (as in the developer wrote Java code, I am using the Groovy compiler behind the scenes). Most of it works, but I did see a few compatibility issues. Some seem like