Switch

Brian Goetz brian.goetz at oracle.com
Sat Jan 27 17:17:06 UTC 2024


Thanks for these reports.  Some of them seem obvious how to reproduce, 
but some could use some more information.

> # Duplicate and ambiguous switch cases.
>
>
> Lookupswitch throws an exception but where depends on the ClassFile 
> options specified but tableswitch silently ignores it by dropping a 
> switch case.
>

Can you provide an example of the code that causes the problem?

> # Dead Code
>
> I was surprised that the default was to change deadcode to nop, throw. 
> Also there is no dead code option to faill with an exception.
>

Can you provide more detail of what you expected, in what case, and what 
was different?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/classfile-api-dev/attachments/20240127/cdd282f7/attachment.htm>


More information about the classfile-api-dev mailing list