recalculating stack frames in Java 9
"Yanic Inghelbrecht" <[email protected]> Wed, 21 Dec 2016 15:11:35 +0100 (CET)
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I'm wondering what other people are planning to do with regards to stack frame recalculation in Java 9. Having ASM do the recalculation instead of hand-crafting it is very convenient but needs the common superclass information. For me this is common-super-class calculation is one of the more worrying aspects of the new module system in Java 9, i.e. that the information might not be available to the instrumenting agent. I've seen two ways of getting it, either (force)load the relevant class and query it, or have ASM parse the ancestors' .class files (without actually loading them). Will these two ways still work with Java 9? As I understood it a couple of months ago, the file format for the new module system is deliberately left undocumented. And the forced-loading solution might not be possible either because of access restrictions on the module level. So unless I'm missing something, I would expect most libraries that depend on ASM for their bytecode manipulation will need a work-around for Java 9. So is there another way to get the common superclass information? Best regards, Yanic -- Trace Modeler - the fastest way to create UML sequence diagrams http://www.tracemodeler.com -- 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