Permalink
Browse files

GRAILS-5767 - improve Groovy 1.7 support. this particular change is r…

…elated to the last argument to a constructor being a closure and looking like an anonymous inner class
  • Loading branch information...
1 parent feb8e8c commit a925141d0015d517dabda76f4acb7effc13811f9 @jeffbrown jeffbrown committed Feb 9, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 grails/src/java/org/codehaus/groovy/grails/web/pages/GroovyPageParser.java
View
4 grails/src/java/org/codehaus/groovy/grails/web/pages/GroovyPageParser.java
@@ -840,7 +840,7 @@ private void endTag() {
String bodyTagClosureName = "null";
if (!tm.emptyTag && !tm.bufferMode) {
bodyTagClosureName = "body" + tagIndex;
- out.println("}");
+ out.println("})");
closureLevel--;
}
@@ -1018,7 +1018,7 @@ private void writeTagBodyStart(TagMeta tm) {
out
.println("body"
+ tm.tagIndex
- + " = new GroovyPageTagBody(this,binding.webRequest) {");
+ + " = new GroovyPageTagBody(this,binding.webRequest, {");
closureLevel++;
}
}

0 comments on commit a925141

Please sign in to comment.