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-165

omitting parens in constructor call

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: parser
  • Labels:
    None
  • Environment:
    all

Description

When parentheses are omitted from a constructor call, the parser gives an UnexpectedTokenException. Additionally, if the comma is omitted it gives an IndexOutOfBoundsException.
Here's an example.

class Car {
String make
String model

Car() {}

Car(String make, String model) { this.make = make this.model = model }
}

c = new Car 'Honda','Odyssey'
println c.dump()

Issue Links

is depended upon by

Task - A task that needs to be done. GROOVY-762 implement syntax improvements

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
james strachan added a comment - 28/Jan/04 12:34 PM

just changing to a feature request rather than bug

Show
james strachan added a comment - 28/Jan/04 12:34 PM just changing to a feature request rather than bug

People

  • Assignee:
    Guillaume Laforge
    Reporter:
    R. Mark Volkmann
Vote (0)
Watch (0)

Dates

  • Created:
    27/Jan/04 12:30 PM
    Updated:
    02/Nov/07 5:07 AM
    Resolved:
    02/Nov/07 5:07 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.