This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: PR java/20338 - Call _Jv_InitClass for private static methods in an inner class


>>>>> "Bryce" == Bryce McKinlay <mckinlay@redhat.com> writes:

Bryce> We're not strictly bound by the rules of the .class format for the
Bryce> BC-ABI, though, are we? Why not just permit private access in the
Bryce> linker for calls between nested classes? Sure, generating accessor
Bryce> methods would fix it too (and also fix our bytecode generation), but
Bryce> there's an efficiency loss.

Yeah, this might work.  Someone would need to vet the security
implications.  Also at the moment we don't emit enough reflection
info to know what classes are nested; see Class.getClasses() and
Class.getDeclaredClasses() :-(

We could also add our own access protection flag.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]