Improve the creation of instance objects

Aleksey Shipilev aleksey.shipilev at oracle.com
Mon Jan 12 13:49:00 UTC 2015


Hi Volker,

On 01/02/2015 07:32 PM, Volker Simonis wrote:
> What do you think? With these small changes I could get some better
> results when calling MainObject{Internals, Externals, Footprint} on
> some classes which only had private constructors.

Good idea, submitted:
  https://bugs.openjdk.java.net/browse/CODETOOLS-7901238

Fixed with:
  http://hg.openjdk.java.net/code-tools/jol/rev/2f3be1f10b0c

(Note you have to also catch NoSuchMethodException to properly fallback
to class-only introspection)

Thanks,
-Aleksey.



More information about the jol-dev mailing list