javap cannot read module-info.class
Remi Forax
forax at univ-mlv.fr
Sat Jul 1 16:01:26 UTC 2017
Hi Stephan,
there is something wrong from your side, it works for me :)
/usr/jdk/jdk-9-b175/bin/javap --module-path target/main/exploded/ --module fr.umlv.asm.test module-info
Compiled from "module-info.java"
module fr.umlv.asm.test {
requires java.base;
requires org.objectweb.asm.all.debug;
exports fr.umlv.asm.test;
}
/usr/jdk/jdk-9-b175/bin/javap -m java.base module-info
Compiled from "module-info.java"
module java.base at 9 {
exports sun.reflect.generics.reflectiveObjects to
java.desktop;
exports java.util;
exports java.lang.ref;
exports jdk.internal.misc to
java.rmi,
java.sql,
jdk.jshell,
...
cheers,
Rémi
----- Mail original -----
> De: "Stephan Herrmann" <stephan.herrmann at berlin.de>
> À: jigsaw-dev at openjdk.java.net
> Envoyé: Samedi 1 Juillet 2017 17:08:20
> Objet: javap cannot read module-info.class
> compile an arbitrary module-info.java and then:
>
> $ javap module-info.class
> Error: error while reading constant pool for /tmp/bin/module-info.class:
> unexpected tag at #5: 19
>
> From tweaking the Eclipse compiler it seems that javap is expecting a
> CONSTANT_Utf8_info,
> where according to JVMS 4.7.25 a CONSTANT_Module_info is required.
>
> JVMS and javac agree, so javap is the odd man out.
>
> Stephan
>
> PS: build is 9+175
More information about the jigsaw-dev
mailing list