[Bug java/23431] [4.0/4.1 regression] gcj allows overriding with more restrictive access
rmathew at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 23 09:56:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list