--- old/src/macosx/native/sun/awt/AWTWindow.m 2013-09-13 16:01:00.000000000 +0400 +++ new/src/macosx/native/sun/awt/AWTWindow.m 2013-09-13 16:00:59.000000000 +0400 @@ -350,7 +350,7 @@ - (void) dealloc { AWT_ASSERT_APPKIT_THREAD; - JNIEnv *env = [ThreadUtilities getJNIEnv]; + JNIEnv *env = [ThreadUtilities getJNIEnvUncached]; [self.javaPlatformWindow setJObject:nil withEnv:env]; self.nsWindow = nil;