Test bug: new ClassReader("java.lang.Object") throws IOException("Class not found") in jdk-9
bug description:
IOException("Class not found") is thrown in test, the bug is in test code,
it's due to jdk-9 changes, buggy code:
1. org.objectweb.asm.ClassReaderUnitTest.java, line 81:
new ClassReader(Object.class.getName())
2. org.objectweb.asm.util.CheckClassAdapterUnitTest.java, line 469:
new ClassReader("java.lang.Object")
root cause:
some asm test calls code like 'new ClassReader("java.lang.Object")', which
will finally call code like
'ClassLoader.getSystemResourceAsStream("java/lang/Object.class")', but in
jdk-9 "Resources in a named module are private to that module.", so
getSystemResourceAsStream will return null, finally it will throw
IOException("Class not found").