Re: Re: generics in ASM

Rémi Forax <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
Le 22/07/2010 00:52, Eugene Kuleshov a écrit :
> Ben Evans wrote:
>>  OK, I'll bite. Why would anyone care about pre-1.5 compatibility
>>  these days? Java 5 is EOL - it's dead, so why does it make sense to
>>  ship anything with support for older versions of Java than 5?
>
>  Because we can. :)

And SUN jdk5 is EOLed, not java 5 which is a spec.
IBM has several implementations of java 4 that aren't EOLed.

>
>  Anyways, the only packages that exposing non-generified collections 
> to the user API are asm.tree and asm.tree.analysis the rest is just 
> internally used collections.
>
>  Internally, in a few places, ASM breaks the rules of strongly-typed 
> collections and storing different objects within the same collection 
> and then using instanceof instead of virtual lookup. That stuff could 
> be rewritten to be strongly typed, but that will likely increase an 
> in-memory representation of the tree model. Anyways, performance 
> impact should be compared for any code changes.

We can also use Object as argument type (like in List<Object>) to avoid 
virtual lookup.

>
>  regards,
>  Eugene
>
>

cheers,
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.