Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1-rc-2
-
None
-
JDK6u3, WinXP
Description
from mailing list:
Hi all,
Executing the following code, Groovy will complain:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script2: 3: Can't have an abstract method in a non-abstract class. The class 'CallableTask' must be declared abstract or the method 'java.lang.Object call()' must be implemented.
@ line 3, column 1.
1 error
<groovy>
import java.util.concurrent.*
class CallableTask implements Callable<String> {
public String call()
}
</groovy>
but in Java, the code can be compiled with no problem.
Could you some one tell me why?
Thanks in advance,
Daniel.Sun