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

interactive shell can't handle strings which span multiple lines

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.0-JSR-5
  • Component/s: None
  • Labels:
    None

Description

e.g. try the following script in the shell...

xml = """<people>

<person name="Rod">

<pet name="Misha" age="8"/>

<pet name="Bowie" age="2"/>

</person>

<person name="Eric">

<pet name="Poe" age="4"/>

<pet name="Doc" age="3"/>

</person></people>"""

people = new groovy.util.XmlParser().parseText( xml )

println people.person.pet.name

Issue Links

is depended upon by

Task - A task that needs to be done. GROOVY-756 improve GroovyShell

  • 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
Alan Green added a comment - 17/Dec/05 1:46 AM

The exception that signaled incomplete source had changed. Made changes to SourceUnit.failedWithUnexpectedEOF() to recognise the new exceptions.

Show
Alan Green added a comment - 17/Dec/05 1:46 AM The exception that signaled incomplete source had changed. Made changes to SourceUnit.failedWithUnexpectedEOF() to recognise the new exceptions.

People

  • Assignee:
    Unassigned
    Reporter:
    james strachan
Vote (0)
Watch (0)

Dates

  • Created:
    14/May/04 3:10 AM
    Updated:
    17/Dec/05 1:46 AM
    Resolved:
    17/Dec/05 1:46 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.