Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: 1.5.5
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
The code generates an error message
interface B {
def x()
}
interface C {
def x()
}
class A implements B, C{
def x(){
return 33
}
}
The error:
Exception thrown: java.lang.InstantiationException: B
java.lang.InstantiationException: B
But it is a possible situation in java.
Issue Links
| This issue is related to: | ||||
| GROOVY-1328 | cleanup strategy of choosing the class to execute when a file contains multiple classes |
|
|
|
This works fine for me on the comand-line with HEAD. How are you running your code?