javap cannot read module-info.class

Alan Bateman Alan.Bateman at oracle.com
Sat Jul 1 16:36:30 UTC 2017



On 01/07/2017 16:08, Stephan Herrmann wrote:
> 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.
It would be interesting to see if the runtime can read this, does "java 
-p /tmp/bin --list-modules" list the module?

-Alan



More information about the jigsaw-dev mailing list