| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ] |
| Articles |
- Classworking toolkit: Analyzing generics data structures by Dennis M. Sosnoski - [Clicks: 40]
Java 5 generics encode detailed type information into class files. Many types of tools can benefit from the improved description of data structures provided by comprehensive type information, but getting this information into a useful form can be difficult. To make it easier, series author Dennis Sosnoski builds a data structure analysis program around the ASM Java bytecode manipulation framework that interprets generics information to create an in-depth view of the actual types of data used by an application.
[Includes sample code]
http://www-128.ibm.com/developerworks/java/library/j-cwt03286.html - Mar, 2006 - Classworking toolkit: Generics with ASM by Dennis M. Sosnoski - [Clicks: 41]
Java 5 generics provide information that's useful for many classworking applications. Although Java reflection can be used to get generics information for loaded classes, the requirement that classes be loaded into the JVM can be a major drawback. In this article, classworking guru Dennis Sosnoski shows how the ASM Java bytecode manipulation framework offers flexible access to generics information without going through the Java classloading process. Along the way, he looks deeper into the representation of generics in the binary class format.
[Includes sample code]
http://www-128.ibm.com/developerworks/java/library/j-cwt02076.html - Feb, 2006