Re: ASM6 beta !
[email protected] Mon, 17 Jul 2017 19:27:18 +0200 (CEST)
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
[Cedric send this privately but given the content, i suppose, he wanted to post it for everybody] > De: "Cédric Champeau" <[email protected]> > À: "Remi Forax" <[email protected]> > Envoyé: Lundi 17 Juillet 2017 17:30:07 > Objet: Re: [asm] ASM6 beta ! > Thanks, team! > Just a side note, I encountered the first problem with jars embedding > module-info, and it was with ASM 6 :) Basically tools scanning classpath like > ProGuard choke on it. Expected, I guess... yes, each ASM 6 jars contains a module-info.class, so you can do a 'requires org.objectweb.asm...' in your own module-info to use ASM as a module. It's a good idea for ProGuard to choke on the module-info. You have two kinds of tools that consume bytecodes, you have VMs and agents, those consume bytecode lazily thus will never see a module-info.class (apart if they follow the Java 9 spec), for other tools that scan jars, they will need to be updated to either skip the module-info or to read it (maybe with ASM *). In the case of ProGuard, it should read the module-info.class because 1/ it lists the exported packages, so the config of ProGuard can be simpler (before you add to explain which package was internal or not), 2/ the module-info reference services (interfaces and impls) that are classes, if those are renamed by ProGuard, the module-info need to be updated accordingly. Also, Cedric, do you have file a bug report to ProGuard ? I was not able to find it ? And feel free to link to that discussion. regards, Rémi * ProGuard does not use ASM to read/write the bytecode but its own codes. > 2017-07-16 16:36 GMT+02:00 Remi Forax < [ mailto:[email protected] | > [email protected] ] > : >> Hi all, >> we, the ASM Team, are proud to announce the release of ASM6 Beta, >> which include the support of the Java 9 classfile format. >> Over the last month, we have (mostly Eric in fact) moved ASM out of SVN to Git, >> the code source is now available at >> [ https://gitlab.ow2.org/asm/ | https://gitlab.ow2.org/asm/ ] >> The issues and the docs, etc have not yet migrated to OW2's Gitlab but will be >> soon. >> The binaries of the ASM6 beta releases are available on the Gforge: >> [ http://forge.ow2.org/projects/asm/ | http://forge.ow2.org/projects/asm/ ] >> Maven Central repository will be updated soon, we're still have a small issue >> with the internal ow2 nexus due to the migration to Gitlab. >> The ASM6_FUTURE branch has been merged to the master (ex trunk) so bug fixes, >> etc, will be done in priority on ASM6. >> ASM 6 release notes: >> - add a new kind of visitor, ModuleVisitor that visit a module descriptor >> (module-info) >> - add a new API constant: Opcodes.ASM6 >> - support JDK specific attributes (ModuleTarget, ModuleHashes and >> ModuleResolution) in asm.commons >> - support PACKAGE and MODULE new constant pool entries (can be used by custom >> attributes) >> - update asm.tree by adding ModuleNode, ModuleRequireNode, ModuleExportNode, >> ModuleOpenNode and ModuleProvideNode >> - update ASMifier and the Trace visitors >> - the remapper support to remap module name (and update ModuleHashes if present >> accordingly) >> - ASM jars are now modules too, most of the jars are still compatible with Java >> 1.3, asm-xml is compatible with Java 1.4 and asm-all-debug is compatible with >> Java 1.5 >> - does not work with javac 9 (yet !) >> regards, >> Rémi >> -- >> You receive this message as a subscriber of the [ mailto:[email protected] | >> [email protected] ] mailing list. >> To unsubscribe: mailto: [ mailto:[email protected] | >> [email protected] ] >> For general help: mailto: [ mailto:[email protected] | [email protected] ] ?subject=help >> OW2 mailing lists service home page: [ http://www.ow2.org/wws | >> 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