groovy
  1. groovy
  2. GROOVY-3281

GroovyScriptEngine doesn't inherit CompilerConfiguration from parent classloader

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6-beta-2
    • Fix Version/s: 1.6-rc-2, 1.5.8, 1.7-beta-1
    • Component/s: groovy-jdk
    • Labels:
      None
    • Testcase included:
      yes
    • Patch Submitted:
      Yes
    • Number of attachments :
      2

      Description

      GroovyScriptEngine doesn't inherit CompilerConfiguration from parent classloader

      CompilerConfiguration cc = new CompilerConfiguration();
      cc.setScriptBaseClass(ScriptBase.class.getName())

      GroovyClassLoader cl= new GroovyClassLoader(this.getClassLoader(), cc, false)

      GroovyScriptEngine engine = new GroovyScriptEngine("file://.", cl)
      def script = engine.createScript("test.groovy", new Binding())

      assertTrue(script instanceof ScriptBase.)

      1. GroovyScriptEngine.patch
        5 kB
        Alexey Utkin
      2. GroovyScriptEngine.patch.2
        5 kB
        Alexey Utkin

        Activity

          People

          • Assignee:
            Guillaume Laforge
            Reporter:
            Alexey Utkin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: