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-3080 implementation for inner classes in G...
  • GROOVY-3110

Inner enums not supported

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7-beta-1
  • Fix Version/s: 1.6.3, 1.7-beta-1
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes

Description

The following code:

MyClass.groovy
class MyClass {
    public enum Foo { FOO, BAR }

    Foo foo
}

Causes the error message:

/home/martin/panjiva/MyClass.groovy: 4: unable to resolve class Foo
@ line 4, column 3.
Foo foo
^

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

Attachments

  1. File
    InnerEnumTest.groovy
    20/Oct/08 8:42 PM
    0.2 kB
    Martin C. Martin

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
blackdrag blackdrag added a comment - 21/Dec/08 6:36 AM

he inner enum is supported. What is missing is making the name available without qualification through MyClass. MyClass.Foo should do for example

Show
blackdrag blackdrag added a comment - 21/Dec/08 6:36 AM he inner enum is supported. What is missing is making the name available without qualification through MyClass. MyClass.Foo should do for example
Hide
Permalink
Roshan Dawrani added a comment - 08/May/09 3:40 PM

Fixed the class resolution error reported.

Show
Roshan Dawrani added a comment - 08/May/09 3:40 PM Fixed the class resolution error reported.

People

  • Assignee:
    Roshan Dawrani
    Reporter:
    Martin C. Martin
Vote (0)
Watch (0)

Dates

  • Created:
    20/Oct/08 8:42 PM
    Updated:
    14/May/09 10:47 AM
    Resolved:
    08/May/09 3:40 PM
  • 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.