You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could try to detect that the case block ends with a return operation and do not break the scope.
The text was updated successfully, but these errors were encountered:
mkouba
changed the title
Fix generated bytecode for Switch constructs with fall through enabled if the case block returns a value
Fix generated bytecode for Switch constructs with fall through disabled if the case block returns a value
Oct 24, 2023
Ladicek
changed the title
Fix generated bytecode for Switch constructs with fall through disabled if the case block returns a value
Improve generated bytecode for Switch constructs with fall through disabled if the case block returns a value
Oct 24, 2023
This is a very naive approach (javac seems to do a much more involved control flow analysis), but it should be good enough for a decent number of cases, so +1.
Currently, the generated bytecode contains some garbage as described in quarkusio/quarkus#36626 (comment).
We could try to detect that the case block ends with a
return
operation and do not break the scope.The text was updated successfully, but these errors were encountered: