Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-4
Description
When by error I created a class with two exact same methods, the class was compiled, however, when run, a ClassFormatError was thrown:
Caught: java.lang.ClassFormatError: GroovyShellSamplesTest (Repetitive method name/signature)
A simple class like that will yield the error:
class FooFooTest extends GroovyTestCase {
void foo() {}
void foo() {}
}
Ideally, we should get a nice error message when compiling the class