javap cannot read module-info.class

Stephan Herrmann stephan.herrmann at berlin.de
Sat Jul 1 15:08:20 UTC 2017


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