Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
7u51, 8, 9
-
b11
-
generic
-
generic
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045761 | 8u25 | Mike Duigou | P4 | Resolved | Fixed | b01 |
JDK-8042549 | 8u20 | Mike Duigou | P4 | Resolved | Fixed | b15 |
JDK-8053590 | emb-8u26 | Mike Duigou | P4 | Resolved | Fixed | b17 |
Description
When loading and initializing the class sun.net.InetAddrCachePolicy, NFEs will be thrown and caught when networkaddress.cache.ttl and networkaddress.cache.negative.ttl aren't set (which they typically aren't):
try {
tmp = new Integer(
java.security.AccessController.doPrivileged (
new PrivilegedAction<String>() {
public String run() {
return Security.getProperty(cachePolicyProp);
}
}));
} catch (NumberFormatException e) {
// ignore
}
try {
tmp = new Integer(
java.security.AccessController.doPrivileged (
new PrivilegedAction<String>() {
public String run() {
return Security.getProperty(cachePolicyProp);
}
}));
} catch (NumberFormatException e) {
// ignore
}
Attachments
Issue Links
- backported by
-
JDK-8042549 Avoid provoking NumberFormatException when initializing InetAddrCachePolicy
- Resolved
-
JDK-8045761 Avoid provoking NumberFormatException when initializing InetAddrCachePolicy
- Resolved
-
JDK-8053590 Avoid provoking NumberFormatException when initializing InetAddrCachePolicy
- Resolved