-
Bug
-
Resolution: Done
-
Major
-
28.0.1.Final
-
None
When the default modular JVM parameters are built, the file common.bat is called like the following:
call "!DIRNAME!common.bat" :setDefaultModularJvmOptions !JAVA_OPTS!
The parameter
!JAVA_OPTS!
is missing surrounding hyphens
"!JAVA_OPTS!"
.
When passing a JVM parameter containing pipes like "-Dhttp.nonProxyHosts=localhost^|127.0.0.1" the pipe will be executed as batch command and is not treated as an argument. This results in a Wildfly start without granted access to private members for a couple of libraries and will show errors like this:
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.lang.Class java.util.EnumMap.keyType accessible: module java.base does not "opens java.util" to unnamed module @76e163a8