Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Groovy Console and Groovy Shell errors for Groovy 3 and 4 #1260

Closed
eric-milles opened this issue May 22, 2021 · 2 comments
Closed

Groovy Console and Groovy Shell errors for Groovy 3 and 4 #1260

eric-milles opened this issue May 22, 2021 · 2 comments
Assignees
Labels
Milestone

Comments

@eric-milles
Copy link
Member

When opening the AST inspector of the Groovy Console under Groovy 3, there is an exception:

image
image

When launching the Groovy Console or Groovy Shell under Groovy 4, there is an error:

image
image

@eric-milles eric-milles added this to the v4.2.0 milestone May 22, 2021
@eric-milles eric-milles self-assigned this May 22, 2021
@eric-milles
Copy link
Member Author

image
image

@eric-milles
Copy link
Member Author

Groovy Console is working fine. Groovy Shell is failing for Groovy 2.5, 3.0 and 4.0:

ERROR java.lang.ClassCastException:
groovysh_evaluate cannot be cast to groovy.lang.GroovyObject
        at org.apache.groovy.groovysh.Interpreter.evaluate (Interpreter.groovy:72)
        at org.apache.groovy.groovysh.Evaluator$evaluate.call (Unknown Source)
        at org.apache.groovy.groovysh.Groovysh.execute (Groovysh.groovy:203)
        at org.apache.groovy.groovysh.Shell.leftShift (Shell.groovy:121)
        at org.apache.groovy.groovysh.Shell$leftShift$0.call (Unknown Source)
        at org.apache.groovy.groovysh.ShellRunner.work (ShellRunner.groovy:93)
        at org.apache.groovy.groovysh.InteractiveShellRunner.super$2$work (InteractiveShellRunner.groovy)
        at org.apache.groovy.groovysh.InteractiveShellRunner.work (InteractiveShellRunner.groovy:136)
        at org.apache.groovy.groovysh.ShellRunner.run (ShellRunner.groovy:57)
        at org.apache.groovy.groovysh.InteractiveShellRunner.super$2$run (InteractiveShellRunner.groovy)
        at org.apache.groovy.groovysh.InteractiveShellRunner.run (InteractiveShellRunner.groovy:95)
        at java_lang_Runnable$run.call (Unknown Source)
        at org.apache.groovy.groovysh.Groovysh.run (Groovysh.groovy:635)
        at org.apache.groovy.groovysh.Groovysh$run$0.callCurrent (Unknown Source)
        at org.apache.groovy.groovysh.Groovysh.run (Groovysh.groovy:600)
        at org.apache.groovy.groovysh.Groovysh$run.call (Unknown Source)
        at org.apache.groovy.groovysh.Main.startGroovysh (Main.groovy:190)
        at org.apache.groovy.groovysh.Main.main (Main.groovy:156)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant