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

[Android, FXML] FXMLLoader uses new Method.getParameterCount() method

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 8u20
    • 8u20
    • javafx

    Description

      FXMLLoader.java contains a few of these statements:
       return m.getParameterCount() == 0
      where m is an instance of java.lang.reflect.Method.
      the getParameterCount() is new in Java 8 and hence doesn't work on Android/iOS.

      The call can be replaced with
      m.getParameterTypes().length

      Attachments

        Activity

          People

            msladecek Martin Sládeček
            jvos Johan Vos
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: