daniellansun commented on code in PR #2706:
URL: https://github.com/apache/groovy/pull/2706#discussion_r3575296002
##########
src/test/groovy/bugs/Groovy11362.groovy:
##########
@@ -33,9 +33,11 @@ final class Groovy11362 extends AbstractBytecodeTestCase {
}
}
'''
+ // Catch parameter must be typed Exception (GROOVY-11362), not Object.
+ // Label numbers are not stable across try/catch codegen improvements.
Review Comment:
I hope I have understood what you mean.
In the past years, I find groovy generates more complex bytecode for
try-catch statement than Java does, so I wish we could refine them. As we all
know, simpler and less bytecode is also friendly to JIT.
See also:
https://issues.apache.org/jira/browse/GROOVY-12161
--
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]