Re: BCEL and JDK 1.5 (generics)

Simon Kitching <[email protected]> Tue, 12 Jul 2005 12:37:51 +1200
Newsgroups gmane.comp.jakarta.bcel.user
Message-ID <[email protected]>
On Tue, 2005-07-12 at 00:51 +0100, Alan Spencer wrote:
> Hi,
> I've just moved to jdk 1.5 with generics and I'm sure
> BCEL can't support them, is this true?

Yes that's true. BCEL does not support java 1.5. 

There has been some vague talk about adding this, but unless someone
steps up to write the code it isn't likely to happen.

> I have not tried the svn version yet, will this help?

No.

If you need generics support I suggest you try ASM (asm.objectweb.org).
Note that the ASM core uses a "visitor" pattern to process class files,
and this is the recommended way to use ASM. However it can also build a
tree representation like BCEL's if you use the optional "tree" package.

Regards,

Simon