Re: generics in ASM

Eugene Kuleshov <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <[email protected]>
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. :)

  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.

  regards,
  Eugene
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.