[Bug libgcj/23431] [4.0/4.1 regression] gcj allows overriding with less restrictive access
tromey at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 22 19:12:00 GMT 2005
------- Additional Comments From tromey at gcc dot gnu dot org 2005-08-22 19:12 -------
Here is a test case that needs only libgcj:
abstract class B implements Runnable
{
public B() { }
abstract void run();
}
class C extends B
{
void run() { }
}
class A
{
private C c = null;
public A()
{
System.out.println("A is getting instantiated");
c = new C();
}
public static void main( String[] args )
{
A a = new A();
}
}
I'm changing the synopsis of this PR. It is not a gij bug but rather
a gcj bug.
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |13607
nThis| |
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-08-22 19:12:07
date| |
Summary|abstract method resolve |[4.0/4.1 regression] gcj
|error in gij |allows overriding with less
| |restrictive access
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23431
More information about the Java-prs
mailing list