--- old/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m 2016-02-10 17:26:57.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m 2016-02-10 17:26:57.000000000 +0300 @@ -624,7 +624,7 @@ { NSString *selectedText = [self accessibleSelectedText]; NSAttributedString *styledText = [[NSAttributedString alloc] initWithString:selectedText]; - NSData *rtfdData = [styledText RTFDFromRange:NSMakeRange(0, [styledText length]) documentAttributes:nil]; + NSData *rtfdData = [styledText RTFDFromRange:NSMakeRange(0, [styledText length]) documentAttributes:@{}]; [styledText release]; return rtfdData; } @@ -681,7 +681,7 @@ if ([[pboard types] containsObject:NSRTFDPboardType]) { NSData *rtfdData = [pboard dataForType:NSRTFDPboardType]; - NSAttributedString *styledText = [[NSAttributedString alloc] initWithRTFD:rtfdData documentAttributes:nil]; + NSAttributedString *styledText = [[NSAttributedString alloc] initWithRTFD:rtfdData documentAttributes:@{}]; NSString *text = [styledText string]; [styledText release]; --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m 2016-02-10 17:26:58.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m 2016-02-10 17:26:58.000000000 +0300 @@ -743,9 +743,10 @@ 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; --- old/src/jdk.deploy.osx/macosx/native/libosx/CFileManager.m 2016-02-10 17:26:59.000000000 +0300 +++ new/src/jdk.deploy.osx/macosx/native/libosx/CFileManager.m 2016-02-10 17:26:58.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -223,7 +223,7 @@ NSInteger res = 0; [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:[path stringByDeletingLastPathComponent] - destination:nil + destination:@"" files:[NSArray arrayWithObject:[path lastPathComponent]] tag:&res]; returnValue = (res == 0);