RFR: JDK-8290975 Minor cleanup could be done in javax.security [v2]
Mark Powers
mpowers at openjdk.org
Fri Aug 5 14:25:42 UTC 2022
On Fri, 5 Aug 2022 10:04:43 GMT, Sean Mullan <mullan at openjdk.org> wrote:
>> I verified the error message happens when `defaultName` is final.
>
> Yes but `defaultName` (like `prompt`) should never change once the object is constructed. So it seems inconsistent not to also mark it final (and if necessary, set it to a default value (`null`) in the constructors).
Agreed. I'll make the change.
-------------
PR: https://git.openjdk.org/jdk/pull/9664
More information about the security-dev
mailing list