Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8267534

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx16
    • 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.

            jvos Johan Vos
            aghaisas Ajit Ghaisas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: