Thanks Johan (as well as all the other helpful mailing list members) for the
suggestion. I already tried Javassist, but it doesn't support annotations.
It handled any method declaration I threw at it, but if I added a (fully
qualified) annotation, it was failing. (Currently I'm using a similar
appr
You could try out Javassist, it's easy and capable of many things and
you basically don't have to know anything about byte-code to use it.
/Johan
Jim Andreou wrote:
> Thanks for your suggestion. I see JCatapult's scope is far wider than
> a bytecode manipulation framework. Could you give me a
Thanks for the suggestion! That's quite close, since it indeed creates
annotated classes/methods. Although I don't find a way to put method
bodies/callbacks (it seems it only creates empty or abstract methods).
Regards,
Dimitris
2009/6/18 Rodrigo Couto
>
> You might want to try ClassMock: http:
You might want to try ClassMock: http://classmock.sourceforge.net/
-- Rodrigo Couto
On Jun 17, 5:44 pm, Jim Andreou wrote:
> Thanks for your suggestion. I see JCatapult's scope is far wider than a
> bytecode manipulation framework. Could you give me a more precise pointer
> regarding what part
Actually just check out the Java.net Commons project here:
https://java-net-commons.dev.java.net
It has a number of classes in the net.java.lang package that use ASM.
You can use the SubVersion browser to look around the code and find
the classes.
https://java-net-commons.de
Thanks for your suggestion. I see JCatapult's scope is far wider than a
bytecode manipulation framework. Could you give me a more precise pointer
regarding what part of JCatapult I should check?
Regards,
Dimitris
2009/6/17 Brian Pontarelli
> JCatapult uses ASM over APT for reading that informat
JCatapult uses ASM over APT for reading that information. It is much
faster and doesn't clutter up your perm-space.
-bp
On Jun 17, 2009, at 2:16 PM, Jim Andreou wrote:
> Never mind, I used javax.tools.JavaCompiler instead (handy!). (And
> sorry for the spam. )
>
> 2009/6/17 Jim Andreou
> H
Never mind, I used javax.tools.JavaCompiler instead (handy!). (And sorry for
the spam. )
2009/6/17 Jim Andreou
> Hi,
> This is not a Guice-specific question, but I figure there are some bytecode
> manipulation veterans here so I hope I can get a pointer or two. :)
>
> Anyone knows a tool with wh
Hi,
This is not a Guice-specific question, but I figure there are some bytecode
manipulation veterans here so I hope I can get a pointer or two. :)
Anyone knows a tool with which one can generate a class with annotations?
(class-level, method-level etc). It seems CGLib doesn't support annotations