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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
    • Subcomponent:

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: