--- old/make/lib/Awt2dLibraries.gmk 2015-09-14 16:35:38.000000000 +0300 +++ new/make/lib/Awt2dLibraries.gmk 2015-09-14 16:35:38.000000000 +0300 @@ -959,10 +959,9 @@ $(X_CFLAGS) \ $(X_LIBS) \ $(LIBAWT_LWAWT_CFLAGS), \ - DISABLED_WARNINGS_clang := incomplete-implementation \ + DISABLED_WARNINGS_clang := incomplete-implementation enum-conversion \ deprecated-declarations objc-method-access bitwise-op-parentheses \ incompatible-pointer-types parentheses-equality extra-tokens, \ - WARNINGS_AS_ERRORS_clang := false, \ LDFLAGS := $(LDFLAGS_JDKLIB) \ $(call SET_SHARED_LIBRARY_ORIGIN) \ -L$(INSTALL_LIBRARIES_HERE), \ --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTEvent.h 2015-09-14 16:35:39.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTEvent.h 2015-09-14 16:35:39.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, 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 @@ -26,8 +26,6 @@ #ifndef __AWTEVENT_H #define __AWTEVENT_H -#import "LWCToolkit.h" - jlong UTC(NSEvent *event); void DeliverJavaKeyEvent(JNIEnv *env, NSEvent *event, jobject peer); void DeliverJavaMouseEvent(JNIEnv *env, NSEvent *event, jobject peer); --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTEvent.m 2015-09-14 16:35:40.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTEvent.m 2015-09-14 16:35:39.000000000 +0300 @@ -23,18 +23,15 @@ * questions. */ -#import -#import -#import -#include - -#import "jni_util.h" -#import "LWCToolkit.h" -#import "ThreadUtilities.h" - #import "java_awt_event_InputEvent.h" #import "java_awt_event_KeyEvent.h" -#import "java_awt_event_MouseEvent.h" +#import "LWCToolkit.h" + +#import "jni_util.h" + +#import +#import +#import /* * Table to map typed characters to their Java virtual key equivalent and back. --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.h 2015-09-14 16:35:40.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.h 2015-09-14 16:35:40.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, 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 @@ -24,7 +24,6 @@ */ #import -#import #import "CDragSource.h" #import "CDropTarget.h" --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m 2015-09-14 16:35:41.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m 2015-09-14 16:35:41.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, 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 @@ -23,22 +23,17 @@ * questions. */ -#import "CGLGraphicsConfig.h" - -#import -#import #import "jni_util.h" - -#import "ThreadUtilities.h" +#import "CGLGraphicsConfig.h" #import "AWTView.h" -#import "AWTEvent.h" #import "AWTWindow.h" -#import "LWCToolkit.h" #import "JavaComponentAccessibility.h" #import "JavaTextAccessibility.h" #import "GeomUtilities.h" #import "OSVersion.h" -#import "CGLLayer.h" +#import "ThreadUtilities.h" + +#import @interface AWTView() @property (retain) CDropTarget *_dropTarget; --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTWindow.h 2015-09-14 16:35:42.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTWindow.h 2015-09-14 16:35:41.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, 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 @@ -27,13 +27,12 @@ #define _AWTWINDOW_H #import -#import #import "CMenuBar.h" #import "LWCToolkit.h" - @class AWTView; +@class JNFWeakJObjectWrapper; @interface AWTWindow : NSObject { @private --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTWindow.m 2015-09-14 16:35:42.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTWindow.m 2015-09-14 16:35:42.000000000 +0300 @@ -25,7 +25,6 @@ #import #import -#import #import "sun_lwawt_macosx_CPlatformWindow.h" #import "com_apple_eawt_event_GestureHandler.h" @@ -34,12 +33,8 @@ #import "AWTWindow.h" #import "AWTView.h" -#import "CMenu.h" -#import "CMenuBar.h" -#import "LWCToolkit.h" #import "GeomUtilities.h" #import "ThreadUtilities.h" -#import "OSVersion.h" #define MASK(KEY) \ (sun_lwawt_macosx_CPlatformWindow_ ## KEY) --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/CDataTransferer.m 2015-09-14 16:35:43.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/CDataTransferer.m 2015-09-14 16:35:43.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, 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 @@ -26,11 +26,9 @@ #import "CDataTransferer.h" #include "sun_lwawt_macosx_CDataTransferer.h" -#import -#import #import "jni_util.h" -#include "ThreadUtilities.h" +#import // ***** NOTE ***** This dictionary corresponds to the static array predefinedClipboardNames --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/CGraphicsConfig.m 2015-09-14 16:35:43.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/CGraphicsConfig.m 2015-09-14 16:35:43.000000000 +0300 @@ -27,7 +27,7 @@ #include "GeomUtilities.h" #include "sun_awt_CGraphicsConfig.h" - +#import /* * Class: sun_awt_CGraphicsConfig --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/CGraphicsDevice.m 2015-09-14 16:35:44.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/CGraphicsDevice.m 2015-09-14 16:35:44.000000000 +0300 @@ -26,6 +26,8 @@ #import "LWCToolkit.h" #import "ThreadUtilities.h" +#import + /* * Convert the mode string to the more convinient bits per pixel value */ @@ -200,7 +202,7 @@ for (NSScreen *screen in screens) { NSDictionary *screenInfo = [screen deviceDescription]; NSNumber *screenID = [screenInfo objectForKey:@"NSScreenNumber"]; - if ([screenID pointerValue] == displayID){ + if ([screenID unsignedIntValue] == displayID){ frame = [screen frame]; visibleFrame = [screen visibleFrame]; break; @@ -333,7 +335,7 @@ for (NSScreen *screen in screens) { NSDictionary *screenInfo = [screen deviceDescription]; NSNumber *screenID = [screenInfo objectForKey:@"NSScreenNumber"]; - if ([screenID pointerValue] == displayID){ + if ([screenID unsignedIntValue] == displayID){ if ([screen respondsToSelector:@selector(backingScaleFactor)]) { ret = [screen backingScaleFactor]; } --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/CGraphicsEnv.m 2015-09-14 16:35:45.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/CGraphicsEnv.m 2015-09-14 16:35:44.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, 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 @@ -23,12 +23,11 @@ * questions. */ -#import +#import "AWT_debug.h" #import "jni_util.h" -#import "LWCToolkit.h" -#import "AWT_debug.h" +#import #define MAX_DISPLAYS 64 --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/CPrinterJob.m 2015-09-14 16:35:45.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/CPrinterJob.m 2015-09-14 16:35:45.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, 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 @@ -143,12 +143,12 @@ NSSize paperSize = [src paperSize]; switch ([src orientation]) { - case NSPortraitOrientation: + case NSPaperOrientationPortrait: jPaperW = paperSize.width; jPaperH = paperSize.height; break; - case NSLandscapeOrientation: + case NSPaperOrientationLandscape: jPaperW = paperSize.height; jPaperH = paperSize.width; break; @@ -217,13 +217,13 @@ static JNF_CTOR_CACHE(jm_Paper_ctor, sjc_Paper, "()V"); jint jOrientation; - NSPrintingOrientation nsOrientation = [src orientation]; + NSPaperOrientation nsOrientation = [src orientation]; switch (nsOrientation) { - case NSPortraitOrientation: + case NSPaperOrientationPortrait: jOrientation = java_awt_print_PageFormat_PORTRAIT; break; - case NSLandscapeOrientation: + case NSPaperOrientationLandscape: jOrientation = java_awt_print_PageFormat_LANDSCAPE; //+++gdb Are LANDSCAPE and REVERSE_LANDSCAPE still inverted? break; @@ -273,20 +273,20 @@ switch (JNFCallIntMethod(env, srcPageFormat, jm_getOrientation)) { // AWT_THREADING Safe (!appKit) case java_awt_print_PageFormat_PORTRAIT: - [dstPrintInfo setOrientation:NSPortraitOrientation]; + [dstPrintInfo setOrientation:NSPaperOrientationPortrait]; break; case java_awt_print_PageFormat_LANDSCAPE: - [dstPrintInfo setOrientation:NSLandscapeOrientation]; //+++gdb Are LANDSCAPE and REVERSE_LANDSCAPE still inverted? + [dstPrintInfo setOrientation:NSPaperOrientationLandscape]; //+++gdb Are LANDSCAPE and REVERSE_LANDSCAPE still inverted? break; // AppKit printing doesn't support REVERSE_LANDSCAPE. Radar 2960295. case java_awt_print_PageFormat_REVERSE_LANDSCAPE: - [dstPrintInfo setOrientation:NSLandscapeOrientation]; //+++gdb Are LANDSCAPE and REVERSE_LANDSCAPE still inverted? + [dstPrintInfo setOrientation:NSPaperOrientationLandscape]; //+++gdb Are LANDSCAPE and REVERSE_LANDSCAPE still inverted? break; default: - [dstPrintInfo setOrientation:NSPortraitOrientation]; + [dstPrintInfo setOrientation:NSPaperOrientationPortrait]; break; } --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/CTrayIcon.m 2015-09-14 16:35:46.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/CTrayIcon.m 2015-09-14 16:35:46.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, 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 @@ -23,9 +23,10 @@ * questions. */ +#import "jni_util.h" + #import #import -#import "jni_util.h" #import "CTrayIcon.h" #import "ThreadUtilities.h" --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/GeomUtilities.h 2015-09-14 16:35:46.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/GeomUtilities.h 2015-09-14 16:35:46.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, 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 @@ -24,8 +24,7 @@ */ #import -#import - +#include "jni.h" jobject CGToJavaRect(JNIEnv *env, CGRect rect); CGRect JavaToCGRect(JNIEnv *env, jobject rect); --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/GeomUtilities.m 2015-09-14 16:35:47.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/GeomUtilities.m 2015-09-14 16:35:47.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, 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 @@ -24,6 +24,7 @@ */ #import "GeomUtilities.h" +#import static JNF_CLASS_CACHE(sjc_Point2D, "java/awt/geom/Point2D"); static JNF_MEMBER_CACHE(jm_pt_getX, sjc_Point2D, "getX", "()D"); --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/JavaComponentAccessibility.h 2015-09-14 16:35:48.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/JavaComponentAccessibility.h 2015-09-14 16:35:47.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, 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 @@ -23,9 +23,9 @@ * questions. */ -#import -#import +#include "jni.h" +#import //#define JAVA_AX_DEBUG 1 //#define JAVA_AX_NO_IGNORES 1 --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.h 2015-09-14 16:35:48.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.h 2015-09-14 16:35:48.000000000 +0300 @@ -23,11 +23,12 @@ * questions. */ +#include "jni.h" + #import #import #import -#import #define DEBUG 1 --- old/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m 2015-09-14 16:35:49.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m 2015-09-14 16:35:49.000000000 +0300 @@ -28,15 +28,10 @@ #import #import #import -#import -#import #include "jni_util.h" -#import "CMenuBar.h" -#import "InitIDs.h" #import "LWCToolkit.h" #import "ThreadUtilities.h" -#import "AWT_debug.h" #import "CSystemColors.h" #import "NSApplicationAWT.h" #import "PropertiesUtilities.h" @@ -46,6 +41,8 @@ #import "sizecalc.h" +#import + int gNumberOfButtons; jint* gButtonDownMasks; --- old/src/java.desktop/macosx/native/libawt_lwawt/java2d/opengl/CGLGraphicsConfig.m 2015-09-14 16:35:49.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/java2d/opengl/CGLGraphicsConfig.m 2015-09-14 16:35:49.000000000 +0300 @@ -23,20 +23,17 @@ * questions. */ -#import -#import -#import -#import - #import "sun_java2d_opengl_CGLGraphicsConfig.h" -#import "jni.h" -#import "jni_util.h" #import "CGLGraphicsConfig.h" #import "CGLSurfaceData.h" -#import "LWCToolkit.h" #import "ThreadUtilities.h" +#import +#import +#import +#import + #pragma mark - #pragma mark "--- Mac OS X specific methods for GL pipeline ---" --- old/src/java.desktop/macosx/native/libawt_lwawt/java2d/opengl/CGLLayer.h 2015-09-14 16:35:50.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/java2d/opengl/CGLLayer.h 2015-09-14 16:35:50.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, 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 @@ -26,7 +26,7 @@ #ifndef CGLLayer_h_Included #define CGLLayer_h_Included -#import "AWTView.h" +#import @interface CGLLayer : CAOpenGLLayer { --- old/src/java.desktop/macosx/native/libawt_lwawt/java2d/opengl/CGLSurfaceData.m 2015-09-14 16:35:51.000000000 +0300 +++ new/src/java.desktop/macosx/native/libawt_lwawt/java2d/opengl/CGLSurfaceData.m 2015-09-14 16:35:50.000000000 +0300 @@ -24,16 +24,13 @@ */ #import -#import #import "sun_java2d_opengl_CGLSurfaceData.h" -#import "jni.h" #import "jni_util.h" #import "OGLRenderQueue.h" #import "CGLGraphicsConfig.h" #import "CGLSurfaceData.h" -#import "CGLLayer.h" #import "ThreadUtilities.h" /* JDK's glext.h is already included and will prevent the Apple glext.h