RFR: 8375119: SwitchBoostraps.enumSwitch does not throw an NPE when lookup is null in some cases
Chen Liang
liach at openjdk.org
Sun Jan 18 08:38:34 UTC 2026
On Wed, 14 Jan 2026 13:38:45 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> The method documents that it can throw multiple exceptions but there is no guaranteed order of argument checking.
@jdlib The JDK by convention may throw any of the permitted exceptions if multiple exceptions apply.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29202#issuecomment-3765059382
More information about the core-libs-dev
mailing list