-
Sub-task
-
Resolution: Fixed
-
P3
-
9
-
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.
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.
- duplicates
-
JDK-8057173 Treat POJOs as Object.seal()'d JS objects
-
- Closed
-
-
JDK-8145724 Undefined properties return 'null' when looked up by a variable
-
- Closed
-