Java proposal would add exception case to switch
https://nordot.app/1155560199159447871