Re: Accessing class files for named modules

2016-05-02 Thread Michael Rasmussen
I can only agree with this. We rely heavily on both ASM and Javassist, and resource lookup/loading in general. While, as an agent, we can usually patch the bytecode to poke holes where needed, having a supported way to read resource bytes, similar to how getResourceAsStream works in jdk8, followin

Re: Accessing class files for named modules

2016-05-02 Thread Alan Bateman
On 02/05/2016 13:51, Rafael Winterhalter wrote: : I am aware that the idea of project Jigsaw is encapsulation but for scenarios like the above, it is often required to break module bondaries. In general, I think that project Jigsaw solved this problem elegantly but changing this single method's

Accessing class files for named modules

2016-05-02 Thread Rafael Winterhalter
Hello everybody, after I gave feedback a while ago I recently revisited how to port code generation libraries to Java 9 and unfortunately, this still does not seem possible with the current implementation. I am speaking based on experience with Javassist and Byte Buddy which are both broadly used