This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]