[
https://issues.apache.org/jira/browse/GROOVY-9438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King updated GROOVY-9438:
------------------------------
Description:
As per the comment from the cloned issue, there was a regression caused by the
previous fix.
To summarise: if a case statement has a break and no other statement and the
switch is the last statement in a method, a cast exception occurs.
Workarounds: add any dummy statement to the case statement before the break or
any dummy statement after the switch.
was:
As per the comment from the cloned issue, there was a regression caused by the
previous fix.
> Incorrect handling of particular case statements within switch
> --------------------------------------------------------------
>
> Key: GROOVY-9438
> URL: https://issues.apache.org/jira/browse/GROOVY-9438
> Project: Groovy
> Issue Type: Bug
> Reporter: Daniel Wilmer
> Assignee: Paul King
> Priority: Major
> Fix For: 3.0.2, 2.5.11
>
>
> As per the comment from the cloned issue, there was a regression caused by
> the previous fix.
> To summarise: if a case statement has a break and no other statement and the
> switch is the last statement in a method, a cast exception occurs.
> Workarounds: add any dummy statement to the case statement before the break
> or any dummy statement after the switch.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)