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

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

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved:
              Imported: