ClassReader throws ArrayIndexOutOfBoundsException when reading specific modul-info.class
I'm using asm-debug-all-6.0_ALPHA.jar for reading modules of the upcoming JDK9.
Therefore, I'm reading module-info classes within my program.
However, on some module-info.class files the ClassReader throws an
ArrayIndexOutOfBoundsException in Method readModule when visiting the exports
of a module-info.class file.
In particular, I've experienced this Exception when reading the
module-info.class of the following modules:
- java.compiler
- java.corba
- java.desktop
- java.instrument
- java.management
- java.base
- java.naming
- java.rmi
- java.security.jgss
- java.security.sasl
- java.sql
- java.xml
For the following modules, I get NO exception
- java.logging
- java.activation
- java.annotations.common
- java.compact1
- java.compact2
- java.compact3
- java.httpclient
- java.prefs
- java.scripting
- java.se
- java.se.ee
I've attached a test-case to reproduce the exception when reading
java.base/module-info.class