Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-4
-
None
-
None
Description
The following code will generate an internal NPE when foo is referenced to a second time in another scope:
import groovy.xml.MarkupBuilder;
if (true) {
foo = "bar";
}
PrintWriter screen = new PrintWriter(new OutputStreamWriter(System.out),
true);
def someBuilder = new MarkupBuilder(screen);
someBuilder.pe() {
foo = 1;
}