[scm][3/4] Cope with bug in newly included proper final processing. cf. GROOVY-7284

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[scm][3/4] Cope with bug in newly included proper final processing. cf. GROOVY-7284

Russel Winder-4
Commit
5d714210ab0e06d3b2e2f760567dcc36f4cb1390
Branch
master
Author
Russel Winder <[hidden email]>
Date
Tue, 3 Mar 2015 18:03:51 +0000
Message
Cope with bug in newly included proper final processing. cf. GROOVY-7284

Changed file src/main/groovy/gant/Gant.groovy

125 125        return binding.classLoader.loadClass(className).newInstance()
126 126      }
127 127      catch (Exception e) {
128        final fileText = url.text
128        // Groovy 2.5 finally (!) does proper final checking, previously "final" was the same as "def".
129        // This particular case causes a problem. cf. https://jira.codehaus.org/browse/GROOVY-7284
130        /*final*/ def fileText = url.text
129 131        compileScript(cacheDirectory, fileText, className)
130 132        return binding.groovyShell.parse(fileText, buildClassName)
131 133      }