We need to understand and determine how to proceed with this, with a few options being:
* document the restriction ie. no Application static Controls/Images
* change the initialization of the pipeline, moving pipeline init into Application static initialization.
* change the known issues causing the limitiation ie removing the calls that get Screen prior to that data being avilable
+ in Utils.isQVGA (which is isEmbedded)
+ in Image creation.
it might be possible to lazy evaluate the data, deferring the operations until on the event thread, and hence when the pipeline is initialized.
The issue boiled into a code fragment:
public class ChangeScene1 extends Application {
static com.sun.glass.ui.Screen screenStatic = com.sun.glass.ui.Screen.getMainScreen(); <<<<<<< FAILS
com.sun.glass.ui.Screen screenInstance = com.sun.glass.ui.Screen.getMainScreen(); <<<<<<< Works
- duplicates
-
JDK-8124696 EGLFB: The ReadImage* tests generate NullPointerException at the moment of creating Image object
-
- Closed
-
- is blocked by
-
JDK-8102614 Need to move jfxrt.jar from lib/ to lib/ext/
-
- Closed
-
- relates to
-
JDK-8090323 Consider eliminating the JavaFX-Launcher Thread
-
- Open
-
-
JDK-8102035 Change launcher to always call the main method for standalone JavaFX applications
-
- Resolved
-
-
JDK-8102211 Change FX startup such that the Application is initialized and constructed in the FX application thread
-
- Resolved
-
-
JDK-8090367 Consider using the Java main thread as the FX application thread
-
- Closed
-