jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • groovy
  • GROOVY-1465

Circular references with interfaces

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-JSR-6
  • Fix Version/s: 1.6.8, 1.7.1
  • Component/s: command line processing
  • Labels:
    None
  • Environment:
    Win XP

Description

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

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    superinterfaces.9.1.3.groovy
    17/Aug/06 8:05 AM
    0.4 kB
    Ken Barclay

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Andres Almiray added a comment - 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

Show
Andres Almiray added a comment - 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
Hide
Permalink
Roshan Dawrani added a comment - 28/Nov/09 10:05 AM

Jochen, I have done this change on trunk. Do I have to backport it anywhere? Or can I mark it as Fixed?

Show
Roshan Dawrani added a comment - 28/Nov/09 10:05 AM Jochen, I have done this change on trunk. Do I have to backport it anywhere? Or can I mark it as Fixed?
Hide
Permalink
Roshan Dawrani added a comment - 29/Nov/09 11:50 AM

Fixed. Please note that the fix has not been done on 1.7.0 as discussed on dev mailing list.

Show
Roshan Dawrani added a comment - 29/Nov/09 11:50 AM Fixed. Please note that the fix has not been done on 1.7.0 as discussed on dev mailing list.

People

  • Assignee:
    Roshan Dawrani
    Reporter:
    Ken Barclay
Vote (0)
Watch (0)

Dates

  • Created:
    17/Aug/06 8:05 AM
    Updated:
    16/Feb/11 7:43 AM
    Resolved:
    29/Nov/09 11:50 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.