Running an app with @Configuration using Java 9 prints ugly illegal access warnings [SPR-15939] #20493
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: duplicate
A duplicate of another issue
Dave Syer opened SPR-15939 and commented
When I run a basic Spring Boot app using Java 9 (and classpath, etc. - normal Java 8 command line), I see red WARN messages from the JDK. It seems they are caused by something in CGLib. Harmless but users will not like it.
Apparently, this is because
--illegal-access=permit
is the default in Java 9, so you can switch it off with--illegal-access=deny
, but it's awkward to have a default setting that emits a warning.If I run the app using modules, the error also goes away, which is interesting:
Affects: 5.0 RC3
Issue Links:
The text was updated successfully, but these errors were encountered: