RFR: 8143926: ObjectStreamField constructor eagerly load ObjectStreamClass

Claes Redestad claes.redestad at oracle.com
Mon Nov 30 11:31:54 UTC 2015


On 2015-11-30 11:38, Chris Hegarty wrote:
>> I'm OK with moving these utility methods to a more neutral place, but
>> since the BytecodeDescriptor utilities are public for now, maybe this
>> should be a follow-up once/if
>> these classes become properly encapsulated?
>
> I see that BytecodeDescriptor has methods that offer similar
> functionality, but if the primary motivation is to reduce the
> number of classes loaded when ObjectStreamField is loaded, then
> maybe the simplest thing to do is to move getClassSignature
> to ObjectStreamField? 

Yes, this would be the primary motivation, and shuffling some methods 
from ObjectStreamClass to ObjectStreamField works for this purpose. Mind 
if I tidy things up a bit?

http://cr.openjdk.java.net/~redestad/8143926/webrev.03

/Claes



More information about the core-libs-dev mailing list