-
Bug
-
Resolution: Duplicate
-
P4
-
9
-
Mac OSX 10.10.4 with Xcode 6.1
-
os_x
On Mac 10.10.4 with Xcode 6.1 this issue appears:
/Users/morris/hotspot/hs9/jdk/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m:387:29: error: sending 'id<NSApplicationDelegate>' to parameter of incompatible type 'id<NSFileManagerDelegate>' [-Werror]
[NSApp setDelegate: applicationDelegate];
^~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:109:47: note: passing argument to parameter 'delegate' here
@property (assign) id <NSFileManagerDelegate> delegate NS_AVAILABLE(10_5, 2_0);
^
1 error generated.
This can be taken care of with the <Availability.h> facility on Mac OS X.
Another error:
/Users/morris/hotspot/hs9/jdk/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m:343:72: error: comparison of constant 777 with expression of type 'NSEventSubtype' (aka 'enum NSEventSubtype') is always false [-Werror,-Wtautological-constant-out-of-range-compare]
} else if ([event type] == NSApplicationDefined && [event subtype] == 777) {
~~~~~~~~~~~~~~~ ^ ~~~
1 error generated.
/Users/morris/hotspot/hs9/jdk/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m:387:29: error: sending 'id<NSApplicationDelegate>' to parameter of incompatible type 'id<NSFileManagerDelegate>' [-Werror]
[NSApp setDelegate: applicationDelegate];
^~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:109:47: note: passing argument to parameter 'delegate' here
@property (assign) id <NSFileManagerDelegate> delegate NS_AVAILABLE(10_5, 2_0);
^
1 error generated.
This can be taken care of with the <Availability.h> facility on Mac OS X.
Another error:
/Users/morris/hotspot/hs9/jdk/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m:343:72: error: comparison of constant 777 with expression of type 'NSEventSubtype' (aka 'enum NSEventSubtype') is always false [-Werror,-Wtautological-constant-out-of-range-compare]
} else if ([event type] == NSApplicationDefined && [event subtype] == 777) {
~~~~~~~~~~~~~~~ ^ ~~~
1 error generated.
- duplicates
-
JDK-8129894 NSApplicationAWT.m:343:72: error: comparison of constant 777 with expression of type 'NSEventSubtype'
-
- Resolved
-
-
JDK-8134884 Incompatible types in libosxapp when compiling against macosx10.10 sdk
-
- Closed
-