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: PR java/19870: Generate Synthetic Accessors For Static Private Field Accesses Across Nested Classes


>>>>> "Ranjit" == Ranjit Mathew <rmathew@gmail.com> writes:

Ranjit>   Here is a patch for PR java/19870. This patch generalises
Ranjit> the current synthetic accessor generation support in GCJ for
Ranjit> private fields in outer classes accessed from nested classes
Ranjit> to additionally support:

I think we also need similar treatment for private methods.
Or is this working ok?

Ranjit> Tested on i686-pc-linux-gnu with Jacks included. The Jacks
Ranjit> testresults were rather disappointing:
Ranjit>   FAIL: 8.5.2-accessible-static-member-usage-3
Ranjit>   FAIL: 15.8.4-static-2

I wouldn't expect to see much improvement on jacks simply because we
accepted this code fine, and then generated invalid bytecode.  Most of
the jacks tests are purely for semantic analysis and don't try
executing the result.

Tom


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