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

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

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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)

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. File
    datasetbug.groovy
    06/May/07 10:46 AM
    4 kB
    S.Weigelt

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. GROOVY-2450 DataSet.findAll does not work directly from script outside CLASSPATH or in pre-compiled bytecode (*.class file)

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
blackdrag blackdrag added a comment - 05/Jan/11 7:21 AM

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

Show
blackdrag blackdrag added a comment - 05/Jan/11 7:21 AM 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

People

  • Assignee:
    blackdrag blackdrag
    Reporter:
    S.Weigelt
Vote (3)
Watch (4)

Dates

  • Created:
    06/May/07 10:46 AM
    Updated:
    05/Jan/11 7:21 AM
    Resolved:
    05/Jan/11 7:21 AM
  • 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.