-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b13
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8320417 | 11.0.23-oracle | Daniel Skantz | P4 | Resolved | Fixed | b01 |
JDK-8321963 | 11.0.23 | Andrew Lu | P4 | Resolved | Fixed | b01 |
* NOTE:
* This test requires at least a setup similar to the following in
* /etc/hosts file (or the windows equivalent). I.e. it expects it to
* be multi-homed and not both being the loop-back interface.
* For example:
* ----->8-------- /etc/hosts ----------->8---
* 127.0.0.1 localhost
* 192.168.0.1 localhost
* ----->8-------- /etc/hosts ----------->8---
However, when one configures the /etc/hosts file like the above the test still fails trivially with:
Ignoring manual test since no more than one IPs are configured for 'localhost'
As it turns out
As a result the condition in the test's main method is wrong:
List<InetAddress> addrs = getAddressesForLocalHost();
if (addrs.size() < 2) {
System.out.println("Ignoring manual test since no more than one IPs are configured for 'localhost'");
return;
}
The condition should be addrs.size() < 1 rather than 2.
The test needs at least two separate ip:port pairs to be able to bind to in order to not trivially pass. For example loop back address and the IP of the host should be sufficient.
- backported by
-
JDK-8320417 [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't
- Resolved
-
JDK-8321963 [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't
- Resolved
- duplicates
-
JDK-8173680 JMXInterfaceBindingTest filter out loopback addresses
- Closed
- relates to
-
JDK-8145982 JMXInterfaceBindingTest is failing intermittently
- Resolved
-
JDK-6425769 Allow specifying an address to bind JMX remote connector
- Resolved
-
JDK-8221303 sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java fails due to java.rmi.server.ExportException: Port already in use
- Resolved