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

MultipleCompilationErrorsException from nested shell doesn't give extra info in RC1

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-RC-1
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    WinXP, jre1.5.0_07, groovy-1.0-JSR-06

Description

In RC1, when calling a nested GroovyShell to run() or evaluate() a script with an error, the MultipleCompilationErrorsException thrown doesn't give the extra info such as line number. It did in JSR-06.

Eg, for File1.groovy:
new GroovyShell().run( new File('File2.groovy') )

and File2.groovy:
oink, oink //syntax error

Running RC1's groovy.ui.GroovyMain on File1.groovy gives error message:
Caught: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed,
at File1.run(File1.groovy:1)
at File1.main(File1.groovy)

but running JSR6's GroovyMain on it gives:
Caught: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed,
File2.groovy: 1: unexpected token: , @ line 1, column 5.
oink, oink
^
1 error
at File1.run(File1.groovy:1)
at File1.main(File1.groovy)

The same situation occurs if we evaluate() instead of run() File2.groovy.

I've given this priority "Major" because, unlike other Jira issues I've reported, this one stops me debugging easily with RC1 when I could with JSR-06.

Thanks, Gavin Grover

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Gavin Grover added a comment - 15/Dec/06 2:28 AM

for environment, I meant to write:
WinXP, jre1.5.0_07, groovy-1.0-RC-01

Show
Gavin Grover added a comment - 15/Dec/06 2:28 AM for environment, I meant to write: WinXP, jre1.5.0_07, groovy-1.0-RC-01
Hide
Permalink
Gavin Grover added a comment - 24/Dec/06 11:06 PM

This was fixed in RC2.
Thanks.

Show
Gavin Grover added a comment - 24/Dec/06 11:06 PM This was fixed in RC2. Thanks.

People

  • Assignee:
    Guillaume Laforge
    Reporter:
    Gavin Grover
Vote (0)
Watch (0)

Dates

  • Created:
    15/Dec/06 2:26 AM
    Updated:
    24/Dec/06 11:06 PM
    Resolved:
    24/Dec/06 11:06 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.