RFR: 8155246: Throw error if default java.security file is missing [v2]

Bernd duke at openjdk.org
Wed Aug 10 16:13:40 UTC 2022


On Wed, 10 Aug 2022 14:43:00 GMT, Sean Mullan <mullan at openjdk.org> wrote:

>> The opening line of the java.security file denotes it as the "master security properties file". I think it works well but open to suggestions. Maybe we can re-use the terminology from previous paragraph.
>> 
>> Fair point about the "missing" and error clause -- perhaps:
>>  ```
>> @implNote If the file containing the default values of security properties fails to load,
>>  * the JDK implementation will throw an unspecified error when initializing the
>>  * {@code Security} class.
>
> I think if you just said "If this properties file ..." it would be sufficient, as the previous paragraph provided enough context as to what you are referring to.

Btw the current code does not handlmissing or unreadable overwrite files very well. PropsLoaded will be true even when the replacing overwrite file could not be loaded (resulting in an empty list).

-------------

PR: https://git.openjdk.org/jdk/pull/9747



More information about the security-dev mailing list