jdaugherty commented on code in PR #15557:
URL: https://github.com/apache/grails-core/pull/15557#discussion_r3341570522


##########
grails-rest-transforms/src/main/groovy/org/grails/plugins/web/rest/transform/ResourceTransform.groovy:
##########
@@ -232,6 +233,8 @@ class ResourceTransform implements ASTTransformation, 
CompilationUnitAware, Tran
 
                     final resourcesUrlMapping = new 
MethodCallExpression(buildThisExpression(), uri, new MapExpression([ new 
MapEntryExpression(new ConstantExpression('resources'), new 
ConstantExpression(domainPropertyName))]))
                     final urlMappingsClosure = new ClosureExpression(null, new 
ExpressionStatement(resourcesUrlMapping))
+                    // Groovy 5/6 ClosureWriter NPE on null VariableScope - 
same family as AbstractMethodDecoratingTransformation.makeDelegatingClosureCall.

Review Comment:
   Isn't this just an API requirement change?  If so, drop the comment.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to