8007748: MacOSX build error : cast of type 'SEL' to 'uintptr_t' (aka 'unsigned long') is deprecated; use sel_getName instead
authorprr
Tue, 12 Feb 2013 09:58:21 -0800
changeset 15630 f644cf0bda45
parent 15629 a041f5885d90
child 15631 ad9db22b3490
8007748: MacOSX build error : cast of type 'SEL' to 'uintptr_t' (aka 'unsigned long') is deprecated; use sel_getName instead Reviewed-by: anthony
jdk/src/macosx/native/jobjc/src/core/native/SEL.m
--- a/jdk/src/macosx/native/jobjc/src/core/native/SEL.m	Fri Feb 08 11:36:18 2013 -0800
+++ b/jdk/src/macosx/native/jobjc/src/core/native/SEL.m	Tue Feb 12 09:58:21 2013 -0800
@@ -34,7 +34,7 @@
     const char *selNameAsChars = (*env)->GetStringUTFChars(env, selName, JNI_FALSE);
     const SEL sel = sel_registerName(selNameAsChars);
     (*env)->ReleaseStringUTFChars(env, selName, selNameAsChars);
-    return ptr_to_jlong(sel);
+    return ptr_to_jlong((void*)sel);
 }
 
 JNIEXPORT jstring JNICALL Java_com_apple_jobjc_SEL_getSelectorName