This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/23431] [4.0/4.1 regression] gcj allows overriding with more restrictive access
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 5 Sep 2005 14:57:41 -0000
- Subject: [Bug java/23431] [4.0/4.1 regression] gcj allows overriding with more restrictive access
- References: <20050817055552.23431.snambi@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-05 14:57 -------
Subject: Bug 23431
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: rmathew@gcc.gnu.org 2005-09-05 14:57:27
Modified files:
gcc/java : ChangeLog typeck.c parse.y
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1659&r2=1.1660
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/typeck.c.diff?cvsroot=gcc&r1=1.79&r2=1.80
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse.y.diff?cvsroot=gcc&r1=1.552&r2=1.553
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23431