< prev index next >
src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m
Print this page
@@ -741,13 +741,14 @@
}
JNIEXPORT jint JNICALL DEF_JNI_OnLoad(JavaVM *vm, void *reserved) {
OSXAPP_SetJavaVM(vm);
- // We need to let Foundation know that this is a multithreaded application, if it isn't already.
+ // We need to let Foundation know that this is a multithreaded application,
+ // if it isn't already.
if (![NSThread isMultiThreaded]) {
- [NSThread detachNewThreadSelector:nil toTarget:nil withObject:nil];
+ [[[[NSThread alloc] init] autorelease] start];
}
return JNI_VERSION_1_4;
}
< prev index next >