Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-4
-
Fix Version/s: 1.0-JSR-2
-
Component/s: command line processing
-
Labels:None
-
Environment:Debian(unstable) linux(2.4.22) on PC(Intel P4)
Sun JRE 1.4.2
-
Number of attachments :
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).
Issue Links
- is depended upon by
-
GROOVY-765
implement compiler checks
-
Activity
blackdrag blackdrag
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Link |
This issue is depended upon by |
Guillaume Laforge
made changes -
| Assignee | Jochen Theodorou [ blackdrag ] |
blackdrag blackdrag
made changes -
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | 1.0-JSR-2 [ 11517 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |