RFR: 8363917: SwitchBootstraps.enumSwitch() args not checked as documented.
Jan Lahoda
jlahoda at openjdk.org
Thu Sep 25 09:42:52 UTC 2025
On Tue, 23 Sep 2025 16:34:05 GMT, Chen Liang <liach at openjdk.org> wrote:
> java.lang.invoke.ConstantBootstraps has a class-level comment that unused arguments may be null. Do you think we should use a similar comment?
We only have two methods in this class right now, so having the description in the method's documentation is not that big burden, and having the rules in the method description seems nicer when reading the method. OTOH, if you strongly prefer that we move the NPE rule to the class description, we can.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27422#issuecomment-3333131839
More information about the core-libs-dev
mailing list