When executing in module mode, the java command doesn't show the verifyError message details

forax at univ-mlv.fr forax at univ-mlv.fr
Sat Mar 23 13:17:53 UTC 2019



----- Mail original -----
> De: "Alan Bateman" <Alan.Bateman at oracle.com>
> À: "Remi Forax" <forax at univ-mlv.fr>, "core-libs-dev" <core-libs-dev at openjdk.java.net>
> Envoyé: Samedi 23 Mars 2019 14:09:10
> Objet: Re: When executing in module mode, the java command doesn't show the verifyError message details

> On 23/03/2019 12:36, Remi Forax wrote:
>> :
>>
>> /usr/jdk/jdk-13/bin/java --enable-preview --module-path target/main/artifact -m
>> fr.umlv.lazystaticfinal
>> Error occurred during initialization of boot layer
>> java.lang.module.FindException: Module org.objectweb.asm.util not found,
>> required by fr.umlv.lazystaticfinal
>>
>> the exception details corresponding to the VerifyError are not printed making
>> the issue hard to debug.
>>
> Can you run with -Xlog:init=debug to see if it reveals stack trace you
> are looking for?

it doesn't :(

/usr/jdk/jdk-13/bin/java -Xlog:init=debug --enable-preview --module-path target/main/artifact:deps -m fr.umlv.lazystaticfinal
Error: Unable to initialize main class fr.umlv.lazystaticfinal.Main in module module fr.umlv.lazystaticfinal
Caused by: module fr.umlv.lazystaticfinal: java.lang.VerifyError

> 
> -Alan

Rémi


More information about the core-libs-dev mailing list