JDK-8267534 : Replace uses of Class.newInstance in android/ios specific files
  • Type: Bug
  • Component: javafx
  • Sub-Component: other
  • Affected Version: openjfx16
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: android
  • CPU: generic
  • Submitted: 2021-05-21
  • Updated: 2021-05-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
The Class.newInstance() method is deprecated in favor of Contructor.newinstance(). According to the API docs for the former:

    clazz.newInstance()

can be replaced by

    clazz.getDeclaredConstructor().newInstance() 

In JavaFX codebase, we did above replacement (except for the android build) under - JDK-8264138.

This bug is to identify and replace similar instances in files for the android and ios builds.