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

FXMLLoader getControllerMethods() should also consider default methods from implemented interfaces

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux

      Description

      A DESCRIPTION OF THE REQUEST :
      The method getControllerMethods() should also add methods of interfaces if they have a default implementation.

      JUSTIFICATION :
      If the controller class implements an interface with methods that have a default implementation they are not available within the accessible members.
      If the controller though implements an interface that has an initialize method that has a default implementation this method will never be called by the FXMLLoader.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      FXMLLoader should consider for initialization also default methods of interfaces.
      ACTUAL -
      FXMLLoader does not consider default implemented methods coming from interfaces.

      CUSTOMER SUBMITTED WORKAROUND :
      Define the initialize methods only in superclasses.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: