Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8143045 Add a missing member handler to BeansLinker
  3. JDK-8144919

Implement missing member handler for BeansLinker

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • b102
    • generic
    • generic

      Implement "no such member" functionality in BeansLinker. To this end, we need to be able to pass a factory object to BeansLinker that it can invoke to produce an application-specific linkage to be invoked when a member (property, method, element) is not found, either for a get or set operation, both for fixed keys and for variable keys.

      Nashorn code will need to be adjusted, specifically part of the logic in the NashornBottomLinker.linkBean will have to be factored out and presented as the implementation of the factory object for "no such member" handles.

      This will require the following modifications to the Dynalink API:
      - BeansLinker will need to gain a constructor for passing the factory object
      - BeansLinker.getLinkerForClass() can no longer be a static method but must become an instance method instead
      - the interface for the factory object must be added to the API.

            attila Attila Szegedi
            attila Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: