Replace uses of Class.newInstance in android/ios specific files

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: jfx16
    • Component/s: javafx
    • generic
    • android

      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.

            Assignee:
            Johan Vos
            Reporter:
            Ajit Ghaisas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: