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

enum not supported with Groovy #7208

Closed
kdorff opened this issue Apr 19, 2018 · 1 comment
Closed

enum not supported with Groovy #7208

kdorff opened this issue Apr 19, 2018 · 1 comment
Assignees

Comments

@kdorff
Copy link

kdorff commented Apr 19, 2018

I'm running BeakerX 0.15.2. This was also an issue with 0.14.0.

I have an empty Groovy notebook. I add a single code cell

enum X {
    A,
    B,
    C
}

and execute the notebook. BeakerX response with

java.lang.InstantiationException: X
	at com.twosigma.beakerx.groovy.evaluator.GroovyCodeRunner.call(GroovyCodeRunner.java:60)
	at com.twosigma.beakerx.groovy.evaluator.GroovyCodeRunner.call(GroovyCodeRunner.java:36)
Caused by: java.lang.NoSuchMethodException: X.<init>()
	at java.lang.Class.getConstructor0(Class.java:3082)
	at java.lang.Class.newInstance(Class.java:412)
	at com.twosigma.beakerx.groovy.evaluator.GroovyCodeRunner.call(GroovyCodeRunner.java:60)
	at com.twosigma.beakerx.groovy.evaluator.GroovyCodeRunner.call(GroovyCodeRunner.java:36)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

It is possible this is related to #7185 but the reporter of that issue didn't report the specific error.

@scottdraves
Copy link
Contributor

thanks. not related but legit!

jaroslawmalekcodete added a commit that referenced this issue Apr 23, 2018
scottdraves pushed a commit that referenced this issue Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants