Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0-JSR-6
-
Fix Version/s: None
-
Component/s: SQL processing
-
Labels:None
-
Environment:Windows XP, Home edition, Service Pack 2
JVM: 1.5.0_02-b09
Description
- the issue: a groovy.lang.GroovyRuntimeException using a DataSet
the SQL-WHERE-condition in the closure of the findAll-method may be unknown at compile-time and only known at run-time, therefore I'm using the evaluate-method. - I start the script with: groovy datasetbug.groovy
the script aborts one line before the last one and that's the output from groovy:
Caught: groovy.lang.GroovyRuntimeException: Could not find the ClassNode for MetaClass: groovy.lang.MetaClassImpl@1f78040[class Script1$_run_closure1]
at datasetbug.run(datasetbug.groovy:119)
at datasetbug.main(datasetbug.groovy)
Issue Links
- relates to
-
GROOVY-2450
DataSet.findAll does not work directly from script outside CLASSPATH or in pre-compiled bytecode (*.class file)
-
I have a replacement bug for this one now in GROOVY-4618 since the original idea with saving the ClassNode directly seemed not to bea good way to solve the problem