Skip to content
Permalink
Browse files
8264139: Suppress removal warnings for Security Manager methods
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Co-authored-by: Kevin Rushforth <kcr@openjdk.org>
Reviewed-by: aghaisas, arapte
  • Loading branch information
kevinrushforth and wangweij committed Jun 15, 2021
1 parent 0ffa8e2 commit c81a722614e46844c285d4a4a623352ef227da87
Showing with 586 additions and 144 deletions.
  1. +23 −7 modules/javafx.base/src/main/java/com/sun/javafx/PlatformUtil.java
  2. +2 −0 modules/javafx.base/src/main/java/com/sun/javafx/logging/PrintLogger.java
  3. +1 −0 modules/javafx.base/src/main/java/com/sun/javafx/logging/PulseLogger.java
  4. +1 −0 modules/javafx.base/src/main/java/com/sun/javafx/property/MethodHelper.java
  5. +0 −3 modules/javafx.base/src/main/java/com/sun/javafx/property/PropertyReference.java
  6. +2 −1 modules/javafx.base/src/main/java/com/sun/javafx/property/adapter/Disposer.java
  7. +3 −0 modules/javafx.base/src/main/java/com/sun/javafx/reflect/MethodUtil.java
  8. +4 −2 modules/javafx.base/src/main/java/com/sun/javafx/reflect/ReflectUtil.java
  9. +3 −0 modules/javafx.base/src/main/java/javafx/beans/property/adapter/JavaBeanBooleanProperty.java
  10. +3 −0 modules/javafx.base/src/main/java/javafx/beans/property/adapter/JavaBeanDoubleProperty.java
  11. +3 −0 modules/javafx.base/src/main/java/javafx/beans/property/adapter/JavaBeanFloatProperty.java
  12. +3 −0 modules/javafx.base/src/main/java/javafx/beans/property/adapter/JavaBeanIntegerProperty.java
  13. +3 −0 modules/javafx.base/src/main/java/javafx/beans/property/adapter/JavaBeanLongProperty.java
  14. +3 −1 modules/javafx.base/src/main/java/javafx/beans/property/adapter/JavaBeanObjectProperty.java
  15. +3 −0 modules/javafx.base/src/main/java/javafx/beans/property/adapter/JavaBeanStringProperty.java
  16. +2 −0 modules/javafx.base/src/main/java/javafx/beans/property/adapter/ReadOnlyJavaBeanBooleanProperty.java
  17. +2 −0 modules/javafx.base/src/main/java/javafx/beans/property/adapter/ReadOnlyJavaBeanDoubleProperty.java
  18. +2 −0 modules/javafx.base/src/main/java/javafx/beans/property/adapter/ReadOnlyJavaBeanFloatProperty.java
  19. +2 −0 modules/javafx.base/src/main/java/javafx/beans/property/adapter/ReadOnlyJavaBeanIntegerProperty.java
  20. +2 −0 modules/javafx.base/src/main/java/javafx/beans/property/adapter/ReadOnlyJavaBeanLongProperty.java
  21. +2 −0 modules/javafx.base/src/main/java/javafx/beans/property/adapter/ReadOnlyJavaBeanObjectProperty.java
  22. +2 −0 modules/javafx.base/src/main/java/javafx/beans/property/adapter/ReadOnlyJavaBeanStringProperty.java
  23. +2 −1 modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/skin/FXVKSkin.java
  24. +1 −0 modules/javafx.controls/src/main/java/javafx/scene/control/skin/ListViewSkin.java
  25. +1 −0 modules/javafx.controls/src/main/java/javafx/scene/control/skin/MenuBarSkin.java
  26. +1 −0 modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableViewSkinBase.java
  27. +2 −1 modules/javafx.controls/src/main/java/javafx/scene/control/skin/TextInputControlSkin.java
  28. +1 −0 modules/javafx.controls/src/main/java/javafx/scene/control/skin/TreeViewSkin.java
  29. +1 −0 modules/javafx.fxml/src/main/java/com/sun/javafx/fxml/BeanAdapter.java
  30. +1 −0 modules/javafx.fxml/src/main/java/com/sun/javafx/fxml/MethodHelper.java
  31. +3 −1 modules/javafx.fxml/src/main/java/com/sun/javafx/fxml/ModuleHelper.java
  32. +18 −2 modules/javafx.fxml/src/main/java/javafx/fxml/FXMLLoader.java
  33. +4 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/Accessible.java
  34. +2 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/Application.java
  35. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/Platform.java
  36. +3 −5 modules/javafx.graphics/src/main/java/com/sun/glass/ui/Screen.java
  37. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/View.java
  38. +16 −3 modules/javafx.graphics/src/main/java/com/sun/glass/ui/gtk/GtkApplication.java
  39. +2 −1 modules/javafx.graphics/src/main/java/com/sun/glass/ui/ios/IosApplication.java
  40. +7 −2 modules/javafx.graphics/src/main/java/com/sun/glass/ui/mac/MacApplication.java
  41. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/mac/MacCommonDialogs.java
  42. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/AndroidInputDeviceRegistry.java
  43. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/AndroidPlatformFactory.java
  44. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/C.java
  45. +2 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/DispmanAcceleratedScreen.java
  46. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/EGL.java
  47. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/EPDPlatformFactory.java
  48. +3 −1 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/EPDScreen.java
  49. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/EPDSettings.java
  50. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/EPDSystem.java
  51. +3 −1 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/FBDevScreen.java
  52. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/HeadlessScreen.java
  53. +2 −1 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/KeyInput.java
  54. +5 −8 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/LinuxArch.java
  55. +2 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/LinuxInputDeviceRegistry.java
  56. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/LinuxPlatformFactory.java
  57. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/LinuxSystem.java
  58. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/LinuxTouchProcessor.java
  59. +3 −1 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/LinuxTouchTransform.java
  60. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/MonocleApplication.java
  61. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/MonocleSettings.java
  62. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/NativePlatform.java
  63. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/NativePlatformFactory.java
  64. +2 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/TouchInput.java
  65. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/VNCScreen.java
  66. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/X.java
  67. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/X11AcceleratedScreen.java
  68. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/X11Platform.java
  69. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/X11PlatformFactory.java
  70. +1 −0 modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/X11Screen.java
  71. +7 −1 modules/javafx.graphics/src/main/java/com/sun/glass/ui/win/WinApplication.java
  72. +4 −1 modules/javafx.graphics/src/main/java/com/sun/glass/utils/NativeLibLoader.java
  73. +4 −6 modules/javafx.graphics/src/main/java/com/sun/javafx/application/LauncherImpl.java
  74. +22 −6 modules/javafx.graphics/src/main/java/com/sun/javafx/application/PlatformImpl.java
  75. +2 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/css/StyleManager.java
  76. +2 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/font/AndroidFontFinder.java
  77. +2 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/font/DFontDecoder.java
  78. +2 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/font/Disposer.java
  79. +7 −3 modules/javafx.graphics/src/main/java/com/sun/javafx/font/FontConfigManager.java
  80. +1 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/font/FontFileReader.java
  81. +4 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/font/FontFileWriter.java
  82. +2 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/font/MacFontFinder.java
  83. +10 −3 modules/javafx.graphics/src/main/java/com/sun/javafx/font/PrismFontFactory.java
  84. +2 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/font/PrismFontFile.java
  85. +2 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/font/coretext/OS.java
  86. +2 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/font/directwrite/OS.java
  87. +2 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/font/freetype/OSFreetype.java
  88. +2 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/font/freetype/OSPango.java
  89. +2 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/iio/ios/IosImageLoader.java
  90. +2 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/iio/jpeg/JPEGImageLoader.java
  91. +2 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/stage/WindowHelper.java
  92. +3 −3 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/DummyToolkit.java
  93. +1 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/LocalClipboard.java
  94. +2 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/PermissionHelper.java
  95. +1 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/TKClipboard.java
  96. +1 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/TKScene.java
  97. +1 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/TKStage.java
  98. +24 −7 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/Toolkit.java
  99. +9 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/EmbeddedScene.java
  100. +2 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/EmbeddedStage.java
  101. +4 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/GlassScene.java
  102. +6 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/GlassSceneDnDEventHandler.java
  103. +5 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/GlassStage.java
  104. +15 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/GlassViewEventHandler.java
  105. +3 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/GlassWindowEventHandler.java
  106. +4 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/PerformanceLogger.java
  107. +2 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/PerformanceTrackerHelper.java
  108. +5 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/PrismImageLoader2.java
  109. +5 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/QuantumClipboard.java
  110. +3 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/QuantumRenderer.java
  111. +15 −4 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/QuantumToolkit.java
  112. +5 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/RotateGestureRecognizer.java
  113. +5 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/ScrollGestureRecognizer.java
  114. +1 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/SwipeGestureRecognizer.java
  115. +3 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java
  116. +5 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/ZoomGestureRecognizer.java
  117. +3 −1 modules/javafx.graphics/src/main/java/com/sun/javafx/util/ModuleHelper.java
  118. +2 −0 modules/javafx.graphics/src/main/java/com/sun/javafx/util/Utils.java
  119. +1 −0 modules/javafx.graphics/src/main/java/com/sun/marlin/DMarlinRenderingEngine.java
  120. +4 −0 modules/javafx.graphics/src/main/java/com/sun/marlin/MarlinProperties.java
  121. +3 −1 modules/javafx.graphics/src/main/java/com/sun/marlin/OffHeapArray.java
  122. +1 −0 modules/javafx.graphics/src/main/java/com/sun/marlin/RendererStats.java
  123. +3 −1 modules/javafx.graphics/src/main/java/com/sun/prism/d3d/D3DPipeline.java
  124. +1 −0 modules/javafx.graphics/src/main/java/com/sun/prism/d3d/D3DResourceFactory.java
  125. +2 −1 modules/javafx.graphics/src/main/java/com/sun/prism/es2/ES2Pipeline.java
  126. +3 −1 modules/javafx.graphics/src/main/java/com/sun/prism/es2/GLFactory.java
  127. +2 −1 modules/javafx.graphics/src/main/java/com/sun/prism/es2/GLPixelFormat.java
  128. +1 −0 modules/javafx.graphics/src/main/java/com/sun/prism/es2/MonocleGLDrawable.java
  129. +1 −0 modules/javafx.graphics/src/main/java/com/sun/prism/impl/BufferUtil.java
  130. +1 −0 modules/javafx.graphics/src/main/java/com/sun/prism/impl/PrismSettings.java
  131. +1 −0 modules/javafx.graphics/src/main/java/com/sun/prism/impl/ps/BaseShaderGraphics.java
  132. +5 −2 modules/javafx.graphics/src/main/java/com/sun/prism/j2d/J2DFontFactory.java
  133. +4 −1 modules/javafx.graphics/src/main/java/com/sun/prism/j2d/print/J2DPrinterJob.java
  134. +2 −1 modules/javafx.graphics/src/main/java/com/sun/prism/sw/SWPipeline.java
  135. +2 −1 modules/javafx.graphics/src/main/java/com/sun/scenario/effect/ImageData.java
  136. +1 −0 modules/javafx.graphics/src/main/java/com/sun/scenario/effect/impl/BufferUtil.java
  137. +2 −1 modules/javafx.graphics/src/main/java/com/sun/scenario/effect/impl/ImagePool.java
  138. +1 −0 modules/javafx.graphics/src/main/java/com/sun/scenario/effect/impl/Renderer.java
  139. +1 −0 modules/javafx.graphics/src/main/java/com/sun/scenario/effect/impl/RendererFactory.java
  140. +1 −0 ...s/javafx.graphics/src/main/java/com/sun/scenario/effect/impl/state/LinearConvolveRenderState.java
  141. +2 −1 modules/javafx.graphics/src/main/java/com/sun/scenario/effect/impl/sw/sse/SSERendererDelegate.java
  142. +3 −0 modules/javafx.graphics/src/main/java/javafx/animation/Animation.java
  143. +3 −0 modules/javafx.graphics/src/main/java/javafx/animation/AnimationTimer.java
  144. +1 −0 modules/javafx.graphics/src/main/java/javafx/application/Preloader.java
  145. +3 −0 modules/javafx.graphics/src/main/java/javafx/concurrent/Service.java
  146. +1 −0 modules/javafx.graphics/src/main/java/javafx/concurrent/Task.java
  147. +2 −0 modules/javafx.graphics/src/main/java/javafx/css/converter/URLConverter.java
  148. +2 −0 modules/javafx.graphics/src/main/java/javafx/print/Printer.java
  149. +2 −0 modules/javafx.graphics/src/main/java/javafx/print/PrinterJob.java
  150. +1 −1 modules/javafx.graphics/src/main/java/javafx/scene/Node.java
  151. +1 −0 modules/javafx.graphics/src/main/java/javafx/scene/PropertyHelper.java
  152. +4 −0 modules/javafx.graphics/src/main/java/javafx/scene/Scene.java
  153. +1 −0 modules/javafx.graphics/src/main/java/javafx/scene/input/Clipboard.java
  154. +1 −0 modules/javafx.graphics/src/main/java/javafx/scene/robot/Robot.java
  155. +1 −0 modules/javafx.graphics/src/main/java/javafx/scene/text/Font.java
  156. +1 −0 modules/javafx.graphics/src/main/java/javafx/stage/PopupWindow.java
  157. +1 −0 modules/javafx.graphics/src/main/java/javafx/stage/Stage.java
  158. +3 −0 modules/javafx.graphics/src/main/java/javafx/stage/Window.java
  159. +1 −0 modules/javafx.graphics/src/test/java/test/com/sun/javafx/pgstub/StubScene.java
  160. +1 −1 modules/javafx.graphics/src/test/java/test/com/sun/javafx/pgstub/StubStage.java
  161. +4 −4 modules/javafx.graphics/src/test/java/test/com/sun/javafx/pgstub/StubToolkit.java
  162. +1 −1 modules/javafx.graphics/src/test/java/test/javafx/scene/input/DragAndDropTest.java
  163. +1 −0 modules/javafx.media/src/main/java/com/sun/media/jfxmedia/locator/Locator.java
  164. +3 −1 modules/javafx.media/src/main/java/com/sun/media/jfxmediaimpl/HostUtils.java
  165. +1 −0 modules/javafx.media/src/main/java/com/sun/media/jfxmediaimpl/NativeMediaManager.java
  166. +2 −1 modules/javafx.media/src/main/java/com/sun/media/jfxmediaimpl/platform/PlatformManager.java
  167. +3 −1 modules/javafx.media/src/main/java/com/sun/media/jfxmediaimpl/platform/osx/OSXPlatform.java
  168. +2 −1 modules/javafx.swing/src/main/java/com/sun/javafx/embed/swing/Disposer.java
  169. +2 −1 modules/javafx.swing/src/main/java/com/sun/javafx/embed/swing/FXDnD.java
  170. +1 −0 modules/javafx.swing/src/main/java/com/sun/javafx/embed/swing/SwingFXUtilsImpl.java
  171. +4 −0 modules/javafx.swing/src/main/java/javafx/embed/swing/JFXPanel.java
  172. +9 −4 modules/javafx.swing/src/main/java/javafx/embed/swing/SwingNode.java
  173. +2 −0 modules/javafx.swt/src/main/java/javafx/embed/swt/FXCanvas.java
  174. +4 −0 modules/javafx.swt/src/main/java/javafx/embed/swt/SWTFXUtils.java
  175. +5 −0 modules/javafx.web/src/main/java/com/sun/javafx/webkit/UIClientImpl.java
  176. +4 −7 modules/javafx.web/src/main/java/com/sun/javafx/webkit/WebPageClientImpl.java
  177. +1 −0 modules/javafx.web/src/main/java/com/sun/javafx/webkit/prism/WCGraphicsPrismContext.java
  178. +2 −1 modules/javafx.web/src/main/java/com/sun/webkit/Disposer.java
  179. +1 −0 modules/javafx.web/src/main/java/com/sun/webkit/MethodHelper.java
  180. +1 −0 modules/javafx.web/src/main/java/com/sun/webkit/Timer.java
  181. +1 −0 modules/javafx.web/src/main/java/com/sun/webkit/Utilities.java
  182. +7 −2 modules/javafx.web/src/main/java/com/sun/webkit/WebPage.java
  183. +6 −3 modules/javafx.web/src/main/java/com/sun/webkit/dom/JSObject.java
  184. +6 −2 modules/javafx.web/src/main/java/com/sun/webkit/network/HTTP2Loader.java
  185. +6 −1 modules/javafx.web/src/main/java/com/sun/webkit/network/NetworkContext.java
  186. +3 −0 modules/javafx.web/src/main/java/com/sun/webkit/network/PublicSuffixes.java
  187. +4 −0 modules/javafx.web/src/main/java/com/sun/webkit/network/SocketStreamHandle.java
  188. +2 −1 modules/javafx.web/src/main/java/com/sun/webkit/network/URLLoader.java
  189. +3 −1 modules/javafx.web/src/main/java/com/sun/webkit/network/URLs.java
  190. +2 −0 modules/javafx.web/src/main/java/javafx/scene/web/HTMLEditorSkin.java
  191. +1 −0 modules/javafx.web/src/main/java/javafx/scene/web/WebEngine.java
  192. +4 −0 modules/javafx.web/src/test/java/test/javafx/scene/web/UserDataDirectoryTest.java
  193. +3 −0 tests/system/src/test/java/test/com/sun/javafx/css/StylesheetWithSecurityManagerTest.java
  194. +5 −0 tests/system/src/test/java/test/robot/helloworld/CustomSecurityManagerTest.java
@@ -52,13 +52,28 @@
private static String javafxPlatform;

static {
javafxPlatform = AccessController.doPrivileged((PrivilegedAction<String>) () -> System.getProperty("javafx.platform"));
@SuppressWarnings("removal")
String str1 = AccessController.doPrivileged((PrivilegedAction<String>) () -> System.getProperty("javafx.platform"));
javafxPlatform = str1;

loadProperties();
embedded = AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> Boolean.getBoolean("com.sun.javafx.isEmbedded"));
embeddedType = AccessController.doPrivileged((PrivilegedAction<String>) () -> System.getProperty("embedded"));
useEGL = AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> Boolean.getBoolean("use.egl"));

@SuppressWarnings("removal")
boolean bool1 = AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> Boolean.getBoolean("com.sun.javafx.isEmbedded"));
embedded = bool1;

@SuppressWarnings("removal")
String str2 = AccessController.doPrivileged((PrivilegedAction<String>) () -> System.getProperty("embedded"));
embeddedType = str2;

@SuppressWarnings("removal")
boolean bool2 = AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> Boolean.getBoolean("use.egl"));
useEGL = bool2;

if (useEGL) {
doEGLCompositing = AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> Boolean.getBoolean("doNativeComposite"));
@SuppressWarnings("removal")
boolean bool3 = AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> Boolean.getBoolean("doNativeComposite"));
doEGLCompositing = bool3;
} else
doEGLCompositing = false;
}
@@ -134,8 +149,8 @@ public static boolean useEGLWindowComposition() {
}

public static boolean useGLES2() {
String useGles2 = "false";
useGles2 =
@SuppressWarnings("removal")
String useGles2 =
AccessController.doPrivileged((PrivilegedAction<String>) () -> System.getProperty("use.gles2"));
if ("true".equals(useGles2))
return true;
@@ -244,6 +259,7 @@ private static File getRTDir() {
}
}

@SuppressWarnings("removal")
private static void loadProperties() {
final String vmname = System.getProperty("java.vm.name");
final String arch = System.getProperty("os.arch");
@@ -54,12 +54,14 @@
* the threshold, then it is logged, otherwise an abbreviated representation including
* only the time of the pulse is logged.
*/
@SuppressWarnings("removal")
private static long THRESHOLD = (long)
AccessController.doPrivileged((PrivilegedAction<Integer>) () -> Integer.getInteger("javafx.pulseLogger.threshold", 17));

/**
* Optionally exit after a given number of pulses
*/
@SuppressWarnings("removal")
private static final int EXIT_ON_PULSE =
AccessController.doPrivileged((PrivilegedAction<Integer>) () -> Integer.getInteger("javafx.pulseLogger.exitOnPulse", 0));

@@ -102,6 +102,7 @@ public static void newInput(String name) {
* @return true if the user requested pulse logging by setting the system
* property javafx.pulseLogger to true, false otherwise.
*/
@SuppressWarnings("removal")
public static boolean isPulseLoggingRequested() {
return AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> Boolean.getBoolean("javafx.pulseLogger"));
}
@@ -36,6 +36,7 @@
* Utility class to wrap method invocation.
*/
public class MethodHelper {
@SuppressWarnings("removal")
private static final boolean logAccessErrors
= AccessController.doPrivileged((PrivilegedAction<Boolean>) ()
-> Boolean.getBoolean("sun.reflect.debugModuleAccessChecks"));
@@ -25,11 +25,8 @@

package com.sun.javafx.property;

import static java.security.AccessController.doPrivileged;

import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.security.PrivilegedAction;

import javafx.beans.property.ReadOnlyProperty;

@@ -50,7 +50,8 @@
static {
disposerInstance = new Disposer();

java.security.AccessController.doPrivileged(
@SuppressWarnings("removal")
var dummy = java.security.AccessController.doPrivileged(
new java.security.PrivilegedAction() {
public Object run() {
/* The thread must be a member of a thread group
@@ -58,6 +58,7 @@
}
}

@SuppressWarnings("removal")
private static void ensureInvocableMethod(Method m)
throws InvocationTargetException
{
@@ -107,6 +108,7 @@ public static Method getMethod(Class<?> cls, String name, Class<?>[] args)
* we're done.
*/
/*public*/
@SuppressWarnings("removal")
static Method[] getPublicMethods(Class<?> cls) {
// compatibility for update release
if (System.getSecurityManager() == null) {
@@ -291,6 +293,7 @@ public static Object invoke(Method m, Object obj, Object[] params)
}
}

@SuppressWarnings("removal")
private static Method getTrampoline() {
try {
return AccessController.doPrivileged(
@@ -41,6 +41,7 @@ private ReflectUtil() {
* also check the package access on the proxy interfaces.
*/
public static void checkPackageAccess(Class<?> clazz) {
@SuppressWarnings("removal")
SecurityManager s = System.getSecurityManager();
if (s != null) {
privateCheckPackageAccess(s, clazz);
@@ -50,7 +51,7 @@ public static void checkPackageAccess(Class<?> clazz) {
/**
* NOTE: should only be called if a SecurityManager is installed
*/
private static void privateCheckPackageAccess(SecurityManager s, Class<?> clazz) {
private static void privateCheckPackageAccess(@SuppressWarnings("removal") SecurityManager s, Class<?> clazz) {
while (clazz.isArray()) {
clazz = clazz.getComponentType();
}
@@ -72,6 +73,7 @@ private static void privateCheckPackageAccess(SecurityManager s, Class<?> clazz)
* the true caller (application).
*/
public static void checkPackageAccess(String name) {
@SuppressWarnings("removal")
SecurityManager s = System.getSecurityManager();
if (s != null) {
String cname = name.replace('/', '.');
@@ -100,7 +102,7 @@ public static boolean isPackageAccessible(Class<?> clazz) {
/**
* NOTE: should only be called if a SecurityManager is installed
*/
private static void privateCheckProxyPackageAccess(SecurityManager s, Class<?> clazz) {
private static void privateCheckProxyPackageAccess(@SuppressWarnings("removal") SecurityManager s, Class<?> clazz) {
// check proxy interfaces if the given class is a proxy class
if (Proxy.isProxyClass(clazz)) {
for (Class<?> intf : clazz.getInterfaces()) {
@@ -96,6 +96,7 @@
private ObservableValue<? extends Boolean> observable = null;
private ExpressionHelper<Boolean> helper = null;

@SuppressWarnings("removal")
private final AccessControlContext acc = AccessController.getContext();

JavaBeanBooleanProperty(PropertyDescriptor descriptor, Object bean) {
@@ -112,6 +113,7 @@
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public boolean get() {
return AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> {
@@ -132,6 +134,7 @@ public boolean get() {
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public void set(final boolean value) {
if (isBound()) {
@@ -96,6 +96,7 @@
private ObservableValue<? extends Number> observable = null;
private ExpressionHelper<Number> helper = null;

@SuppressWarnings("removal")
private final AccessControlContext acc = AccessController.getContext();

JavaBeanDoubleProperty(PropertyDescriptor descriptor, Object bean) {
@@ -112,6 +113,7 @@
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public double get() {
return AccessController.doPrivileged((PrivilegedAction<Double>) () -> {
@@ -133,6 +135,7 @@ public double get() {
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public void set(final double value) {
if (isBound()) {
@@ -96,6 +96,7 @@
private ObservableValue<? extends Number> observable = null;
private ExpressionHelper<Number> helper = null;

@SuppressWarnings("removal")
private final AccessControlContext acc = AccessController.getContext();

JavaBeanFloatProperty(PropertyDescriptor descriptor, Object bean) {
@@ -112,6 +113,7 @@
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public float get() {
return AccessController.doPrivileged((PrivilegedAction<Float>) () -> {
@@ -133,6 +135,7 @@ public float get() {
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public void set(final float value) {
if (isBound()) {
@@ -96,6 +96,7 @@
private ObservableValue<? extends Number> observable = null;
private ExpressionHelper<Number> helper = null;

@SuppressWarnings("removal")
private final AccessControlContext acc = AccessController.getContext();

JavaBeanIntegerProperty(PropertyDescriptor descriptor, Object bean) {
@@ -112,6 +113,7 @@
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public int get() {
return AccessController.doPrivileged((PrivilegedAction<Integer>) () -> {
@@ -133,6 +135,7 @@ public int get() {
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public void set(final int value) {
if (isBound()) {
@@ -96,6 +96,7 @@
private ObservableValue<? extends Number> observable = null;
private ExpressionHelper<Number> helper = null;

@SuppressWarnings("removal")
private final AccessControlContext acc = AccessController.getContext();

JavaBeanLongProperty(PropertyDescriptor descriptor, Object bean) {
@@ -112,6 +113,7 @@
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public long get() {
return AccessController.doPrivileged((PrivilegedAction<Long>) () -> {
@@ -133,6 +135,7 @@ public long get() {
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public void set(final long value) {
if (isBound()) {
@@ -98,6 +98,7 @@
private ObservableValue<? extends T> observable = null;
private ExpressionHelper<T> helper = null;

@SuppressWarnings("removal")
private final AccessControlContext acc = AccessController.getContext();

JavaBeanObjectProperty(PropertyDescriptor descriptor, Object bean) {
@@ -114,7 +115,7 @@
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("unchecked")
@SuppressWarnings({"removal","unchecked"})
@Override
public T get() {
return AccessController.doPrivileged((PrivilegedAction<T>) () -> {
@@ -135,6 +136,7 @@ public T get() {
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public void set(final T value) {
if (isBound()) {
@@ -96,6 +96,7 @@
private ObservableValue<? extends String> observable = null;
private ExpressionHelper<String> helper = null;

@SuppressWarnings("removal")
private final AccessControlContext acc = AccessController.getContext();

JavaBeanStringProperty(PropertyDescriptor descriptor, Object bean) {
@@ -112,6 +113,7 @@
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public String get() {
return AccessController.doPrivileged((PrivilegedAction<String>) () -> {
@@ -132,6 +134,7 @@ public String get() {
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public void set(final String value) {
if (isBound()) {
@@ -85,6 +85,7 @@
private final ReadOnlyPropertyDescriptor descriptor;
private final ReadOnlyPropertyDescriptor.ReadOnlyListener<Boolean> listener;

@SuppressWarnings("removal")
private final AccessControlContext acc = AccessController.getContext();

ReadOnlyJavaBeanBooleanProperty(ReadOnlyPropertyDescriptor descriptor, Object bean) {
@@ -101,6 +102,7 @@
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public boolean get() {
return AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> {
@@ -85,6 +85,7 @@
private final ReadOnlyPropertyDescriptor descriptor;
private final ReadOnlyPropertyDescriptor.ReadOnlyListener<Number> listener;

@SuppressWarnings("removal")
private final AccessControlContext acc = AccessController.getContext();

ReadOnlyJavaBeanDoubleProperty(ReadOnlyPropertyDescriptor descriptor, Object bean) {
@@ -101,6 +102,7 @@
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public double get() {
return AccessController.doPrivileged((PrivilegedAction<Double>) () -> {
@@ -85,6 +85,7 @@
private final ReadOnlyPropertyDescriptor descriptor;
private final ReadOnlyPropertyDescriptor.ReadOnlyListener<Number> listener;

@SuppressWarnings("removal")
private final AccessControlContext acc = AccessController.getContext();

ReadOnlyJavaBeanFloatProperty(ReadOnlyPropertyDescriptor descriptor, Object bean) {
@@ -101,6 +102,7 @@
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public float get() {
return AccessController.doPrivileged((PrivilegedAction<Float>) () -> {
@@ -85,6 +85,7 @@
private final ReadOnlyPropertyDescriptor descriptor;
private final ReadOnlyPropertyDescriptor.ReadOnlyListener<Number> listener;

@SuppressWarnings("removal")
private final AccessControlContext acc = AccessController.getContext();

ReadOnlyJavaBeanIntegerProperty(ReadOnlyPropertyDescriptor descriptor, Object bean) {
@@ -101,6 +102,7 @@
* property throws an {@code IllegalAccessException} or an
* {@code InvocationTargetException}.
*/
@SuppressWarnings("removal")
@Override
public int get() {
return AccessController.doPrivileged((PrivilegedAction<Integer>) () -> {

1 comment on commit c81a722

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on c81a722 Jun 15, 2021

Please sign in to comment.