< prev index next >

modules/graphics/src/main/java/com/sun/javafx/application/PlatformImpl.java

Print this page
rev 9717 : 8151320: Remove unnecessary addReads from JavaFX

*** 44,54 **** import javafx.application.ConditionalFeature; import com.sun.javafx.tk.TKListener; import com.sun.javafx.tk.TKStage; import com.sun.javafx.tk.Toolkit; - import com.sun.javafx.util.ModuleHelper; import javafx.beans.property.BooleanProperty; import javafx.beans.property.SimpleBooleanProperty; import javafx.scene.Scene; import java.security.AccessController; --- 44,53 ----
*** 250,263 **** private static void invokeSwingFXUtilsMethod(final String methodName) { //Use reflection in case we are running compact profile try { Class swingFXUtilsClass = Class.forName("javafx.embed.swing.SwingFXUtils"); - Object thisModule = ModuleHelper.getModule(PlatformImpl.class); - Object targetModule = ModuleHelper.getModule(swingFXUtilsClass); - ModuleHelper.addReads(thisModule, targetModule); - Method installFwEventQueue = swingFXUtilsClass.getDeclaredMethod(methodName); AccessController.doPrivileged((PrivilegedAction<Void>) () -> { installFwEventQueue.setAccessible(true); return null; }); --- 249,258 ----
< prev index next >