This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/23431] [4.0/4.1 regression] gcj allows overriding with more restrictive access
- From: "rmathew at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2005 09:50:30 -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 rmathew at gcc dot gnu dot org 2005-08-23 09:50 -------
Changed synopsis and component. Added keyword.
Interestingly, the following is (wrongly) accepted:
------------------------- 8< -------------------------
interface MyRunnable
{
public void run( );
}
class Snafu implements MyRunnable
{
private void run( ) { }
}
------------------------- 8< -------------------------
but *not* the following:
------------------------- 8< -------------------------
abstract class MyRunnable
{
public abstract void run( );
}
class Snafu extends MyRunnable
{
private void run( ) { }
}
------------------------- 8< -------------------------
--
What |Removed |Added
----------------------------------------------------------------------------
Component|libgcj |java
Keywords| |accepts-invalid
Last reconfirmed|2005-08-22 19:12:07 |2005-08-23 09:50:28
date| |
Summary|[4.0/4.1 regression] gcj |[4.0/4.1 regression] gcj
|allows overriding with less |allows overriding with more
|restrictive access |restrictive access
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23431