Spurious error in Java editor extending a Scala class
A.scala:
B.java:
There are no errors in the "Problems" view, but there is red underline error in the editor B.java: "The type C must implement the inherited abstract method A.method(int)". If I remove the "abstract" modifier from B, the error goes away. (This could be a JDT bug, of course.)
trait A {
def method(n: Int) = 42
}
abstract class B extends A
B.java:
class C extends B {
}
There are no errors in the "Problems" view, but there is red underline error in the editor B.java: "The type C must implement the inherited abstract method A.method(int)". If I remove the "abstract" modifier from B, the error goes away. (This could be a JDT bug, of course.)
Leave a comment
on 2011-09-07 16:45 *
By Mirco Dotta
Milestone set to 2.0
Priority changed from Normal (3) to High (2)
(In revision:94464173ed9004c0d4bb74dd281ee823b14e4133) Fixed #1000594. Non-deferred methods of a trait should not produce errors in Java classes that inherit the non-deferred trait members from a Scala abstract class.
Branch:wip_experiment
Branch:wip_experiment
on 2011-09-15 21:55 *
By Mirco Dotta
(In revision:d34fdfc0892325c6aa8bb45a85af248cba9f7fd9) Fixed #1000594. No longer report incorrect missing implementation method error on Java classes that inherit non-deferred traits' members by subclassing a Scala abstract class
Branch:wip_experiment
Branch:wip_experiment
on 2011-11-01 19:53 *
By Mirco Dotta
(In revision:94464173ed9004c0d4bb74dd281ee823b14e4133) Fixed #1000594. Non-deferred methods of a trait should not produce errors in Java classes that inherit the non-deferred trait members from a Scala abstract class.
Branch: issue/implicit-highlighting-1000628
Branch: issue/implicit-highlighting-1000628
on 2011-11-01 19:53 *
By Mirco Dotta
(In revision:d34fdfc0892325c6aa8bb45a85af248cba9f7fd9) Fixed #1000594. No longer report incorrect missing implementation method error on Java classes that inherit non-deferred traits' members by subclassing a Scala abstract class
Branch: issue/implicit-highlighting-1000628
Branch: issue/implicit-highlighting-1000628