Le 15/11/2010 15:27, iulian dragos a écrit :
Hello Rémi,

Hi iulian,


On Mon, Nov 15, 2010 at 3:08 PM, Rémi Forax <[email protected] <mailto:[email protected]>> wrote:

    Why you did not use ASM [1] ?


I planned to look at ASM for a long time now, but I didn't have the time. In short, it was faster for me to write a simple classfile parser (given that I already have code lying around that does that) than to learn a new Java library. I agree ASM is much more general, and taking the time to learn its workings may help me in the long run, but I must say I am not a big fan of the visitor pattern.

    Or better provide a patch to javap to dump java5 signatures.


That would be desirable too, just that I see two problems: the next Java release is at least a year away, so I'd need to release my tool by some other means anyway. The second is that I prefer to use Scala when it comes to parsing. I must say I don't know how easy it is to contribute to the JDK, so maybe I am overly cautious and the process is simple and fast.

thanks for your feedback,
iulian

Contributing to OpenJDK is simple and fast if you have already signed the OCA (ex-SCA)
http://openjdk.java.net/contribute/
You need to sign that stuff once because the OpenJDK source is also used to create the proprietary Oracle JDK so you need to grant them the copyright of your code.

javac or javap are written in Java and are compiled with Ant,
so you can use the patched version (a jar) until there is a stable released.


    Rémi
    [1] http://asm.ow2.org/


Rémi

--
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en.

Reply via email to