RFR: 8340670: Policy.UNSUPPORTED_EMPTY_COLLECTION.isReadOnly does not return true

Sean Mullan mullan at openjdk.org
Tue Sep 24 16:52:37 UTC 2024


On Tue, 24 Sep 2024 16:04:58 GMT, Artur Barashev <duke at openjdk.org> wrote:

> https://bugs.openjdk.org/browse/JDK-8340670

I think this fix is trivial and obvious enough that you don't need a test; however if you don't plan to add one, please add a noreg-trivial label to the bug so that it doesn't get flagged as missing a test.

src/java.base/share/classes/java/security/Policy.java line 907:

> 905:         @Override
> 906:         public boolean isReadOnly() {
> 907:             return perms.isReadOnly();

You could just return true here. Either way is ok with me.

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

PR Review: https://git.openjdk.org/jdk/pull/21165#pullrequestreview-2325849471
PR Review Comment: https://git.openjdk.org/jdk/pull/21165#discussion_r1773707174


More information about the security-dev mailing list