[#347] | project: compiler | priority: high | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Burak | Martin | fixed | 2004-06-28 17:21:48.0 | |
subject | java interaction, abstract+overload | |||
code |
// file A.java package foo; public abstract class A { public abstract void service(int i);} // file B.java package foo; public abstract class B extends A { // without "abstract" modifier, it's ok protected void service(char c) {} // without service(char), it works, too public void service(int i) {} } // file C.scala package foo; class C extends B {} |
|||
what happened | // compilingburaq@lamppc31:/tmp>javac foo/A.java foo/B.java buraq@lamppc31:/tmp>scalac foo/C.scala foo/C.scala:3: class C needs to be abstract, since method service in class A is not defined class C extends B {} ^ one error found |
|||
what expected | silent compilation.
This is extracted from the Java Servlet API v2.4 |
|||
[back to overview] |
Burak edited on 2004-06-28 17:22:19.0 |
Martin edited on 2004-06-29 18:11:56.0 |