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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 8u20
    • Affects Version/s: 8u20
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported: