Details
-
Bug
-
Resolution: Won't Fix
-
P3
-
9
-
x86
-
os_x
Description
FULL PRODUCT VERSION :
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+123)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+123, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Mac OS X 10.11.5
A DESCRIPTION OF THE PROBLEM :
I get the following exception during startup of my application:
java.lang.RuntimeException: java.lang.IllegalAccessException: class org.simplericity.macify.eawt.DefaultApplication cannot access class com.apple.eawt.Application (in module java.desktop) because module java.desktop does not export com.apple.eawt to unnamed module @7379769c
I understand that this functionality is now handled in java.awt.Desktop and the java.awt.desktop package, which is fine.
But I think the old classes should still be accessible/exported by module java.desktop for Java 9 and "jdeps -jdkinternals" should warn about its usage for now while access should be removed in Java 10.
You'll otherwise break every Java application on Mac that put in the extra effort to be well integrated into the OS.
REGRESSION. Last worked in version 8u92
ADDITIONAL REGRESSION INFORMATION:
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+123)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+123, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
http://simplericity.org/macify/ contains a small example. It is a wrapper around the Apple classes that works on non-mac systems and is still the best option for mac integration I know about.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The application should start.
ACTUAL -
The application explodes during startup.
REPRODUCIBILITY :
This bug can be reproduced always.
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+123)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+123, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Mac OS X 10.11.5
A DESCRIPTION OF THE PROBLEM :
I get the following exception during startup of my application:
java.lang.RuntimeException: java.lang.IllegalAccessException: class org.simplericity.macify.eawt.DefaultApplication cannot access class com.apple.eawt.Application (in module java.desktop) because module java.desktop does not export com.apple.eawt to unnamed module @7379769c
I understand that this functionality is now handled in java.awt.Desktop and the java.awt.desktop package, which is fine.
But I think the old classes should still be accessible/exported by module java.desktop for Java 9 and "jdeps -jdkinternals" should warn about its usage for now while access should be removed in Java 10.
You'll otherwise break every Java application on Mac that put in the extra effort to be well integrated into the OS.
REGRESSION. Last worked in version 8u92
ADDITIONAL REGRESSION INFORMATION:
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+123)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+123, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
http://simplericity.org/macify/ contains a small example. It is a wrapper around the Apple classes that works on non-mac systems and is still the best option for mac integration I know about.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The application should start.
ACTUAL -
The application explodes during startup.
REPRODUCIBILITY :
This bug can be reproduced always.