Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.4, 1.7.5, 1.8-beta-3
-
Fix Version/s: 1.8.4, 2.0-beta-1, 1.7.11
-
Component/s: Compiler
-
Labels:None
-
Number of attachments :
Description
The following code compiles with 1.7.3 but fails with 1.7.4, 1.7.5 and 1.8.0-beta-3.
SomeInterface.groovy
interface SomeInterface {
void doSomething()
}
SomeOtherInterface.groovy
interface SomeOtherInterface extends SomeInterface {}
SomeClass.groovy
class SomeClass {
@Delegate
SomeOtherInterface someOtherInterface
}
Compiling with 1.7.3:
$ groovy -version Groovy Version: 1.7.3 JVM: 1.6.0_22 $ groovyc SomeClass.groovy $
Compiling with 1.7.4:
$ groovy -version
Groovy Version: 1.7.4 JVM: 1.6.0_22
$ groovyc SomeClass.groovy
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
SomeClass.groovy: 1: Can't have an abstract method in a non-abstract class. The class 'SomeClass' must be declared abstract or the method 'void doSomething()' must be implemented.
@ line 1, column 1.
class SomeClass {
^
1 error
$
Compiling with 1.7.5:
$ groovy -version
Groovy Version: 1.7.5 JVM: 1.6.0_22
$ groovyc SomeClass.groovy
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
SomeClass.groovy: 1: Can't have an abstract method in a non-abstract class. The class 'SomeClass' must be declared abstract or the method 'void doSomething()' must be implemented.
@ line 1, column 1.
class SomeClass {
^
1 error
$
Compiling with 1.8.0-beta-3:
$ groovy -version
Groovy Version: 1.8.0-beta-3 JVM: 1.6.0_22
$ groovyc SomeClass.groovy
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
SomeClass.groovy: 1: Can't have an abstract method in a non-abstract class. The class 'SomeClass' must be declared abstract or the method 'void doSomething()' must be implemented.
@ line 1, column 1.
class SomeClass {
^
1 error
$
This may be related to GROOVY-4163.
Activity
Guillaume Laforge
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.7.8 [ 17134 ] | |
| Fix Version/s | 1.8-rc-1 [ 17132 ] | |
| Fix Version/s | 1.8-beta-4 [ 17015 ] | |
| Fix Version/s | 1.7.7 [ 17020 ] |
blackdrag blackdrag
made changes -
| Priority | Blocker [ 1 ] | Major [ 3 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 1.7.9 [ 17164 ] | |
| Fix Version/s | 1.7.8 [ 17134 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.8-rc-2 [ 17176 ] | |
| Fix Version/s | 1.8-rc-1 [ 17132 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.8-rc-3 [ 17228 ] | |
| Fix Version/s | 1.8-rc-2 [ 17176 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.7.10 [ 17229 ] | |
| Fix Version/s | 1.7.9 [ 17164 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.7.11 [ 17244 ] | |
| Fix Version/s | 1.7.10 [ 17229 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.8-rc-4 [ 17245 ] | |
| Fix Version/s | 1.8-rc-3 [ 17228 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 1.8.1 [ 17223 ] | |
| Fix Version/s | 1.8-rc-4 [ 17245 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.8.2 [ 17495 ] | |
| Fix Version/s | 1.8.1 [ 17223 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.8.3 [ 17657 ] | |
| Fix Version/s | 1.8.2 [ 17495 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.8.4 [ 17852 ] | |
| Fix Version/s | 1.8.3 [ 17657 ] |
blackdrag blackdrag
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Jochen Theodorou [ blackdrag ] | |
| Fix Version/s | 1.9-beta-5 [ 17925 ] | |
| Resolution | Fixed [ 1 ] |