History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-1465
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Jochen Theodorou
Reporter: Ken Barclay
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Circular references with interfaces

Created: 17/Aug/06 08:05 AM   Updated: 02/May/08 09:20 AM
Component/s: command line processing
Affects Version/s: 1.0-JSR-6
Fix Version/s: 1.6-beta-2

Time Tracking:
Not Specified

File Attachments: 1. Text File superinterfaces.9.1.3.groovy (0.4 kb)

Environment: Win XP


 Description  « Hide
The Groovy compiler accepts circularities in which an interface directly or indirectly extends itself.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Andres Almiray - 28/Nov/07 12:59 AM
Define each interface in its own file
interface Rs extends Ss { }
interface Ss extends Rs { }
interface Tt extends Tt { }

s.groovy

def ss = {} as Ss

t.groovy

def tt = {} as Tt

groovy s.groovy yields StackOverflownError //unexpected ??
groovy t.groovy yields ClassCircularityError // expected