JDK-8027961 : Inet[4|6]Address native initializing code should check field/MethodID values
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-11-07
  • Updated: 2015-01-26
  • Resolved: 2013-11-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 Other
7u80Fixed 8 b117Fixed port-stage-ppc-aixFixed
Description

There are no checks for NULLs. e.g.

static void initializeInetClasses(JNIEnv *env)
{
    static int initialized = 0;
    if (!initialized) {
        ni_iacls = (*env)->FindClass(env, "java/net/InetAddress");
        ni_iacls = (*env)->NewGlobalRef(env, ni_iacls);
        ni_ia4cls = (*env)->FindClass(env, "java/net/Inet4Address");
        ni_ia4cls = (*env)->NewGlobalRef(env, ni_ia4cls);
        ni_ia4ctrID = (*env)->GetMethodID(env, ni_ia4cls, "<init>", "()V");
        initialized = 1;
    }
}

Comments
No issues related to the InetAddress related fixes in the latest nightly. SQE OK to take all 5 fixes to CPU15_02: JDK-8071499, JDK-8027961, JDK-7180557, JDK-8010371, JDK-8026245
26-01-2015

7u80-critical-request-justification: 7180557 dependency - see that bug for full justification
20-01-2015