Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
1.7-beta-2
-
None
-
None
-
None
Description
For me, this INCORRECTLY compiles:
interface I { String s }
Execution in 1.7beta2 groovyconsole gives:
groovy> interface I { groovy> String s groovy> } groovy> println I.s null
I smell a bug...
For Java, the rule is: "Every field in the body of an interface must have an initialization expression,..."
(http://java.sun.com/docs/books/jls/second_edition/html/interfaces.doc.html)
Attachments
Issue Links
- is related to
-
GROOVY-3830 java.lang.IncompatibleClassChangeError thrown with Interface containing variable
- Closed