RFR: 8344078: Remove security manager dependency in java.nio [v3]
Alan Bateman
alanb at openjdk.org
Sat Nov 16 08:33:48 UTC 2024
On Sat, 16 Nov 2024 00:26:06 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> src/java.base/share/classes/java/nio/channels/spi/SelectorProvider.java line 116:
>>
>>> 114: return i.hasNext() ? i.next() : null;
>>> 115: } catch (ServiceConfigurationError sce) {
>>> 116: throw sce;
>>
>> There's no need to catch ServiceConfigurationError now, same thing in AsynchronousChannelProvider, Charset ...
>
> Several methods in `FileSystems` are still documented as throwing `ServiceConfigurationError`. Need to verify whether this is still accurate.
Yes, it's still possible, the main thing here (and in a few places) is that we don't need to caught SCE to ignore a cause of SecurityException.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22132#discussion_r1844936876
More information about the nio-dev
mailing list