This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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/23431: More restrictive overriding of interface methods


Ranjit Mathew writes:
 > Hi,
 > 
 >   Here is a patch and corresponding testsuite adjustments for PR
 > java/23431. The problem was that we were looking up the interfaces
 > for the base class, not the original class.
 > 
 > Tested on i686-pc-linux-gnu, with Jacks included. The effect of
 > this patch is:
 > 
 >   XPASS: 8.1.1.1-12
 >   XPASS: 8.4.6.2-hiding-5
 > 
 > OK for mainline?
 > 
 > Thanks,
 > Ranjit.
 > 
 > :ADDPATCH java:
 > 
 > -- 
 > Ranjit Mathew      Email: rmathew AT gmail DOT com
 > 
 > Bangalore, INDIA.    Web: http://ranjitmathew.hostingzero.com/
 > Index: ChangeLog
 > from  Ranjit Mathew  <rmathew@hotmail.com>
 > 
 > 	PR java/23431
 > 	* typeck.c (lookup_do): Look up interfaces for the original class,
 > 	not the base class.
 > 	* parse.y (java_check_regular_methods): Fix diagnostic message for
 > 	more restrictive overriding of a method from an interface.

Great, thanks!  You're doing a terrific job on these longstanding bugs.

Andrew.


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