--- 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; }