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

Issues with remote closures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.5
    • 1.7.6, 1.8-beta-3
    • None
    • None

    Description

      The following usages of groovy remote do not work.

      remote.exec { new GregorianCalendar().time = new Date() }
      remote.exec { new GregorianCalendar()."$methodName"(new Date()) }
      

      Both of these constructs cause a NoClassDefFoundError because somehow a reference to the owner class is embedded in the closure.

      See: http://permalink.gmane.org/gmane.comp.lang.groovy.user/51193

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            ldaley Luke Daley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: