Tommy,

I guess you might get more detailed info if you add the JVM option 
“--illegal-access=debug”.

(Groovy works for me on Mac pretty nicely for years :))

All the best,
OC

> On 24. 6. 2024, at 14:50, Tommy Svensson <to...@natusoft.se> wrote:
> 
> Hmm ....
> 
>    It is the JDK that produces the message. ==> I believe  It is the JDK that 
> produces the message.
> 
> Just to be clear :-)
> 
> Tommy Svensson
> to...@natusoft.se <mailto:to...@natusoft.se>
> 
> 
> 
> Från: Tommy Svensson <to...@natusoft.se> <mailto:to...@natusoft.se>
> Svara: Tommy Svensson <to...@natusoft.se> <mailto:to...@natusoft.se>
> Datum: 23 juni 2024 at 19:49:50
> Till: users@groovy.apache.org <mailto:users@groovy.apache.org> 
> <users@groovy.apache.org> <mailto:users@groovy.apache.org>
> Ämne:  Interesting problem only on Mac! 
> 
>> Hello Groovy users,
>> 
>> I reported this error message here  earlier, but I have new information that 
>> makes even less sense :-). 
>> 
>> WARNING: An illegal reflective access operation has occurred
>> WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v9.Java9 
>> (file:/Users/tommy/.m2/repository/org/apache/groovy/groovy/4.0.21/groovy-4.0.21.jar)
>>  to field java.lang.reflect.Proxy.h
>> WARNING: Please consider reporting this to the maintainers of 
>> org.codehaus.groovy.vmplugin.v9.Java9
>> WARNING: Use --illegal-access=warn to enable warnings of further illegal 
>> reflective access operations
>> WARNING: All illegal access operations will be denied in a future release
>> 
>> I'm building with Liberica JDK, but I also tried same version of Coretto. Om 
>> my Mac both of these report the above message.
>> 
>> But now it gets interesting when I build the same code with the same JDKs on 
>> a virtual Ubuntu Linux (Parallels) then I got no such warning message, only 
>> on Mac! It is the JDK that produces the message.
>> 
>> Is the Groovy community trying to say "Don't use Mac!" :-)
>> 
>> Tommy Svensson
>> to...@natusoft.se <mailto:to...@natusoft.se>

Reply via email to