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

Duplicate class error with listen mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.0-beta-8
    • 1.0-beta-9
    • None
    • None
    • All

    Description

      GroovyShell created Script objects now seem to insist on a unique name, need to rework GroovyMain and GroovySocketServer to use a generated name each time instead.

      java.lang.LinkageError: duplicate class definition: main
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      at groovy.lang.GroovyClassLoader.access$100(GroovyClassLoader.java:70)
      at groovy.lang.GroovyClassLoader$ClassCollector.onClassNode(GroovyClassLoader.java:478)
      at groovy.lang.GroovyClassLoader$ClassCollector.call(GroovyClassLoader.java:488)
      at org.codehaus.groovy.control.CompilationUnit$5.call(CompilationUnit.java:587)
      at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:822)
      at org.codehaus.groovy.control.CompilationUnit.classgen(CompilationUnit.java:525)
      at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:432)
      at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:234)
      at groovy.lang.GroovyShell.parseClass(GroovyShell.java:485)
      at groovy.lang.GroovyShell.parse(GroovyShell.java:497)
      at groovy.lang.GroovyShell.parse(GroovyShell.java:477)
      at groovy.lang.GroovyShell.parse(GroovyShell.java:519)
      at groovy.ui.GroovySocketServer.run(GroovySocketServer.java:41)
      at java.lang.Thread.run(Thread.java:552)

      Attachments

        Activity

          People

            jez Jeremy Rayner
            jez Jeremy Rayner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: