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/12893] The included test case does not link


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-09 19:09 -------
The code does excatlly what I said it did.
GCJ should have rejected this code when compiling to *.class like javac does:
D.java:13: abstract method f() cannot be accessed directly
  void f(){super.f();}
                ^
1 error


Simplified version:
class A
{
  void f(){}
}
abstract class B extends A
{
  abstract void f();
}
class C extends B
{
  void f(){super.f();}
}

Can you report my findings to classpath for this module?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|                            |1
           Keywords|                            |accepts-invalid
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-09 19:09:22
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12893


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