[
https://issues.apache.org/jira/browse/GROOVY-12035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18083030#comment-18083030
]
ASF GitHub Bot commented on GROOVY-12035:
-----------------------------------------
testlens-app[bot] commented on PR #2556:
URL: https://github.com/apache/groovy/pull/2556#issuecomment-4524650193
## ✅ All tests passed ✅
🏷️ Commit: 924789f6864ec89fa0062095817c09cebff7cacf
▶️ Tests: 83842 executed
⚪️ Checks: 28/28 completed
---
_Learn more about TestLens at [testlens.app](https://testlens.app)._
> Avoid emitting unreachable GOTO in if/else bytecode generation
> --------------------------------------------------------------
>
> Key: GROOVY-12035
> URL: https://issues.apache.org/jira/browse/GROOVY-12035
> Project: Groovy
> Issue Type: Improvement
> Reporter: Daniel Sun
> Priority: Major
>
> StatementWriter.writeIfElse currently emits GOTO exitPath unconditionally
> whenever an else branch exists. If the if branch is already non-fallthrough
> (e.g., return, throw, or nested abrupt control flow), that jump is
> unreachable and introduces dead bytecode in the generated method.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)