-
Bug
-
Resolution: Fixed
-
P5
-
18
-
None
-
b24
Reported on serviceability-dev:
https://mail.openjdk.java.net/pipermail/serviceability-dev/2021-August/038964.html
jdk/src/java.management/share/classes/com/sun/jmx/remote/internal/ServerNotifForwarder.java
..contains a method: removeNotificationListener(ObjectName name, Integer[] listenerIDs)
..which looks like it intends to keep the first Exception thrown, and throw that after the loop, but not to stop the loop attempting all removeNotificationListener() calls.
So it would make sense to assign the caught Exception to re, only if re IS null, but the condition looks wrong, so currently this method never throws an Exception. It has been like this forever.
- relates to
-
JDK-8343838 Test EmptyDomainNotificationTest.java fails with ListenerNotFoundException
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/bf5c3ce2
-
Review(master) openjdk/jdk/21950