On Tue, 15 Oct 2024 22:14:00 GMT, Sean Mullan <[email protected]> wrote:
>> src/java.management/share/classes/javax/management/remote/JMXConnectorFactory.java
>> line 225:
>>
>>> 223: */
>>> 224: public static JMXConnector connect(JMXServiceURL serviceURL)
>>> 225: throws IOException {
>>
>> I wonder if these changes should also be reverted, on the ground that a
>> server may have authentication in place and may refuse the connection. Same
>> below.
>
> Yes, good catches, I will revert some of these JMX methods that can also
> throw SecurityExceptions for non-SM reasons.
Yes, see the fix in
https://github.com/openjdk/jdk/pull/21498/commits/23a43e0d90aff8754909785f582ba0666046cf6c.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21498#discussion_r1806953911