bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug java/23431] [4.0/4.1 regression] gcj allows overriding with more re


From: rmathew at gcc dot gnu dot org
Subject: [Bug java/23431] [4.0/4.1 regression] gcj allows overriding with more restrictive access
Date: 23 Aug 2005 09:50:30 -0000

------- 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]