Posted by mister__m on February 05, 2004 at 07:14 PM | Comments (4) As I said, I'm back with more on the new JDK 1.5. There is a new package called java.lang.instrument that allows you to intercept a class before being loaded and modify its bytecode, for example (can I hear standard entry point for AOP support? :-P). Well, let's use it for something different: measuring the size of some objects.