Compile Error
David Holmes
david.holmes at oracle.com
Fri Aug 17 02:42:32 UTC 2018
Max,
On 17/08/2018 11:34 AM, mr rupplin wrote:
> Spot what's the issue here:
>
> Compiling 4 files for BUILD_JIGSAW_TOOLS
> Error occurred during initialization of VM
> java.lang.NullPointerException
> at jdk.internal.misc.VM.saveAndRemoveProperties(java.base/VM.java:176)
> at java.lang.System.initPhase1(java.base/System.java:802)
You are making changes to the core OpenJDK code and we can't see what
you have done (not that anyone is here to do your debugging for you).
Your changes have resulted in a NullPointerException whilst setting (or
removing) some of the initial system properties during early
initialization of the class libraries.
You need to look at your changes and debug things. I will say that the
initialization sequence for the system is very fragile and easily
broken. If you have added new static initialization actions to core
classes then you may well have violated numerous
assumptions/expectations of the initialization sequence. You can't use
arbitrary Java code within the initialization code of core library
classes because you can get unresolvable circular dependencies.
As others have stated, making changes to core OpenJDK classes is not a
trivial matter, and you need a certain level of OpenJDK experience and
expertise to be able to manage it.
David
>>>
>
> make/Main.gmk:356: recipe for target 'exploded-image-optimize' failed
>
More information about the core-libs-dev
mailing list