Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-JSR-6
-
Component/s: command line processing
-
Labels:None
-
Environment:Win XP
-
Number of attachments :
Description
The Groovy compiler accepts circularities in which an interface directly or indirectly extends itself.
Define each interface in its own file
interface Rs extends Ss { }
interface Ss extends Rs { }
interface Tt extends Tt { }
s.groovy
def ss = {} as Sst.groovy
def tt = {} as Ttgroovy s.groovy yields StackOverflownError //unexpected ??
groovy t.groovy yields ClassCircularityError // expected