- 
    Bug 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    jfx17
- 
        os_x
                    Since https://bugs.openjdk.java.net/browse/JDK-8265031 the minimum mac-os version for JavaFX is increased to 10.12. We pass that minimum version to the compiler.
With https://bugs.openjdk.java.net/browse/JDK-8263169 a test is added to check if we are at MacOS 10.12 or above, and if so some code is executed that was not available before 10.12:
if (@available(macOS 10.12, *)) {...}
The combination of these 2 patches lead to a crash on 10.11 for any JavaFX application. The compiler seems to ignore the `@available` check if we already pass 10.12 as the minimum version, hence the code that wasn't available on 10.11 is tried to be executed.
There are a number of other ways to check if we're at 10.12 at runtime, which would prevent this crash.
With https://bugs.openjdk.java.net/browse/JDK-8263169 a test is added to check if we are at MacOS 10.12 or above, and if so some code is executed that was not available before 10.12:
if (@available(macOS 10.12, *)) {...}
The combination of these 2 patches lead to a crash on 10.11 for any JavaFX application. The compiler seems to ignore the `@available` check if we already pass 10.12 as the minimum version, hence the code that wasn't available on 10.11 is tried to be executed.
There are a number of other ways to check if we're at 10.12 at runtime, which would prevent this crash.
- relates to
- 
                    JDK-8265031 Change default macOS min version for x86_64 to 10.12 and aarch64 to 11.0 -           
- Resolved
 
-         
- 
                    JDK-8269967 JavaFX should fail fast on macOS below minimum version -           
- Resolved
 
-         
- 
                    JDK-8263169 [macOS] JavaFX windows open as tabs when system preference for documents is set -           
- Closed
 
-         
- 
                    JDK-8269968 [REDO] Bump minimum version of macOS for x64 to 10.12 -           
- Resolved
 
-         
             (1 links to)
        
     
        