Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-4
-
None
-
Debian(unstable) linux(2.4.22) on PC(Intel P4)
Sun JRE 1.4.2
Description
If a groovy class overrides a final method then groovyc will compile it fine, but the .class file generated will be invalid: -
Base.java
public class Base {
final int getCount()
}
MyBase.groovy
class MyBase extends Base {
int getCount()
}
These will both compile with groovyc without error. It's only when you try to compile: -
MyBaseTest.groovy
class MyBaseTest extends GroovyTestCase {
void testBasic()
}
... that groovyc throws a MissingClassException. Running javap on MyBase.class fails (it exposes a bug in javap that I think only happens for invalid class files).
Attachments
Issue Links
- is depended upon by
-
GROOVY-765 implement compiler checks
- Closed