8007748: MacOSX build error : cast of type 'SEL' to 'uintptr_t' (aka 'unsigned long') is deprecated; use sel_getName instead
Reviewed-by: anthony
--- 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