diff --git a/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c b/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c index 9ef598460b6..981bf534a66 100644 --- a/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c +++ b/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c @@ -50,7 +50,7 @@ #ifndef IP_MULTICAST_ALL #define IP_MULTICAST_ALL 49 #endif -#endif // __linux__` +#endif // __linux__ #ifndef IPTOS_TOS_MASK #define IPTOS_TOS_MASK 0x1e diff --git a/jdk/src/windows/native/java/net/DualStackPlainSocketImpl.c b/jdk/src/windows/native/java/net/DualStackPlainSocketImpl.c index 2c796edab1b..37bd53d76c0 100644 --- a/jdk/src/windows/native/java/net/DualStackPlainSocketImpl.c +++ b/jdk/src/windows/native/java/net/DualStackPlainSocketImpl.c @@ -43,6 +43,7 @@ JNIEXPORT void JNICALL Java_java_net_DualStackPlainSocketImpl_initIDs (JNIEnv *env, jclass clazz) { jclass cls = (*env)->FindClass(env, "java/net/InetSocketAddress"); + CHECK_NULL(cls); isa_class = (*env)->NewGlobalRef(env, cls); isa_ctorID = (*env)->GetMethodID(env, cls, "", "(Ljava/net/InetAddress;I)V");