Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1877

DataSet's findAll-method with a closure and a SQL-WHERE-condition within

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-JSR-6
    • None
    • SQL processing
    • None
    • 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)

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            blackdrag Jochen Theodorou
            wicki S.Weigelt
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment