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

GroovyScriptEngine cannot recompile a class that uses generic parameters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 4.0.0-alpha-1, 3.0.4
    • Component/s: None
    • Labels:
      None

      Description

      The error is: 

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
          map://local/SubClass.groovy: 2: The class BaseClass<String> (supplied with 1 type parameter) refers to the class BaseClass which takes no parameters
      

      I created a test which demonstrates the problem: https://github.com/apache/groovy/pull/1168

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                daniel_sun Daniel Sun
                Reporter:
                jechlin JAMIE ECHLIN
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: