PR java/23431: More restrictive overriding of interface methods
Andrew Haley
aph@redhat.com
Mon Sep 5 11:07:00 GMT 2005
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.
More information about the Java-patches
mailing list