magic reflection access checks

Tom Rodriguez Thomas.Rodriguez at Sun.COM
Tue Aug 21 16:31:59 PDT 2007


> Ahh, sorry, then I wasn't clear enough.  I didn't mean
> sun/reflect/MagicAccessorImpl is not loaded, but e.g.
> sun/reflect/GeneratedConstructorAccessor1 isn't resolved when the
> access-checks happen and the sub-class test on
> sun/reflect/GeneratedConstructorAccessor1 does not work.
> 
> But when trying to resolve sun/reflect/GeneratedConstructorAccessor1,
> obviously access-checks have to happen and these try to do _again_
> sub-class tests on sun/reflect/GeneratedConstructorAccessor1.
> 
> See the problem?  And I wonder how HotSpot can do that?

Sorry I misunderstood.  During class loading we connect up the super before we 
perform the access checks so the class is already in the hierarchy when we ask 
the question.  Are you unable to ask questions like that until class loading has 
fully completed?

tom



More information about the hotspot-dev mailing list