Re: Exception reading module with qualified exports
Remi Forax <[email protected]> Fri, 22 Jul 2016 16:08:26 +0200 (CEST)
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
Hi Paul, My guess is that you using modules creating by a jdk9-jigsaw release and not by a jdk9 release, as i said in a previous mail, ASM 6 is not able to read module-info generated by the jdk9-jigsaw javac and i will prefer not to update ASM until all the patch about the module file format have been applied. Note: the file format change doesn't change the version of the class so ASM has no way to detect if it's an old version or a new version of the module-info.class. cheers, Rémi ----- Mail original ----- > De: [email protected] > À: [email protected] > Envoyé: Jeudi 21 Juillet 2016 00:32:39 > Objet: [asm] Exception reading module with qualified exports > Hello. I receive an exception when a qualified export is declared in a module. > This is reproducible. If I take away the qualified export (the "to" and the > rest), ASM behaves just fine. Steps to reproduce: > > Compile this: > module com.domain1 { } > > Compile this (must include com.domain1 on the module path): > module com.domain2 { > requires com.domain1; > exports com.domain2 to com.domain1; > } > > When reading module-info.class from Module 2: > java.lang.ArrayIndexOutOfBoundsException: 11 > at org.objectweb.asm.ClassReader.readUTF8(Unknown Source) > at org.objectweb.asm.ClassReader.readClass(Unknown Source) > at org.objectweb.asm.ClassReader.c(Unknown Source) > at org.objectweb.asm.ClassReader.accept(Unknown Source) > at org.objectweb.asm.ClassReader.accept(Unknown Source) > > > -- > You receive this message as a subscriber of the [email protected] mailing list. > To unsubscribe: mailto:[email protected] > For general help: mailto:[email protected]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws