Re: Generics in ASM APIs?

Rémi Forax <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
On 01/01/2011 12:21 AM, [email protected] wrote:
> I've been searching the archive for this, haven't found much.
>
> Is there any plan to apply generics to collections in the ASM APIs?  I use the
> Tree API and I'd prefer ClassNode to define List<AnnotationNode>  (and so forth)
> rather than just List.
>
> I realize that ASM predates JDK 1.5 generics, but that's five years ago now!

There is a plan in my mind :)

The idea is to generify ASM but customize the optimizer to generate 1.3 
compatible bytecode.
With that, asm-all.jar will be 1.3 compatible but asm-all-debug.jar will 
be 1.5.
So you can compile using asm-all-debug.jar and use generics and
run using asm-all.jar which is as small as always.

Alas, I have no time to play with that idea,
but I can sponsor anyone who want to try :)

Rémi
message-footer.txt (text/plain, 238 B)
-- 
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.