6734171: java.net.NetworkInterface reports XCheck:jni warnings
authorchegar
Wed, 06 Aug 2008 07:14:41 -0700
changeset 1094 0cb4746beb0c
parent 1093 b7d502a05abf
child 1095 5dda5deb44ef
6734171: java.net.NetworkInterface reports XCheck:jni warnings Summary: Removed leading "L" or trailing ";" from FindClass classname param Reviewed-by: alanb
jdk/src/windows/native/java/net/NetworkInterface.c
--- a/jdk/src/windows/native/java/net/NetworkInterface.c	Wed Aug 06 08:11:49 2008 +0800
+++ b/jdk/src/windows/native/java/net/NetworkInterface.c	Wed Aug 06 07:14:41 2008 -0700
@@ -554,11 +554,11 @@
     ni_childsID = (*env)->GetFieldID(env, ni_class, "childs", "[Ljava/net/NetworkInterface;");
     ni_ctor = (*env)->GetMethodID(env, ni_class, "<init>", "()V");
 
-    ni_iacls = (*env)->FindClass(env, "Ljava/net/InetAddress;");
+    ni_iacls = (*env)->FindClass(env, "java/net/InetAddress");
     ni_iacls = (*env)->NewGlobalRef(env, ni_iacls);
     ni_iaAddr = (*env)->GetFieldID(env, ni_iacls, "address", "I");
 
-    ni_ia4cls = (*env)->FindClass(env, "Ljava/net/Inet4Address;");
+    ni_ia4cls = (*env)->FindClass(env, "java/net/Inet4Address");
     ni_ia4cls = (*env)->NewGlobalRef(env, ni_ia4cls);
     ni_ia4Ctor = (*env)->GetMethodID(env, ni_ia4cls, "<init>", "()V");