-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b44
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085569 | emb-9 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | team |
JDK-8087072 | 8u65 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b01 |
JDK-8080292 | 8u60 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b16 |
JDK-8138482 | emb-8u65 | Unassigned | P3 | Resolved | Fixed | b01 |
JDK-8081197 | emb-8u60 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | team |
For object property get and set BrowserJSObjectLinker should give priority to beans linker. If there is a matching bean style property, that should be linked. Only when no matching property is found or if the access is indexed access, then BrowserJSObjectLinker should use JSObject.getMember/getSlot and JSObject.setMember/setSlot methods.
This is because bean style properties are strongly typed and so script value to required Java side value conversion can happen. For example, JavaFX WebView HTML button class implements JSObject - but has strongly typed getter/setter for many properties. "onclick" property accepts EventHandler object (which is a SAM type). With bean property getting priority, Nashorn can allow script writer to set "onclick" with script function value. script function to EventHandler SAM conversion occurs - because of existing target type conversion scheme. Without priority to beans linker, script writer has to explicitly convert script function to EventHandler (because JSObject methods accept Object and hence no target type conversion).
This is because bean style properties are strongly typed and so script value to required Java side value conversion can happen. For example, JavaFX WebView HTML button class implements JSObject - but has strongly typed getter/setter for many properties. "onclick" property accepts EventHandler object (which is a SAM type). With bean property getting priority, Nashorn can allow script writer to set "onclick" with script function value. script function to EventHandler SAM conversion occurs - because of existing target type conversion scheme. Without priority to beans linker, script writer has to explicitly convert script function to EventHandler (because JSObject methods accept Object and hence no target type conversion).
- backported by
-
JDK-8080292 BrowserJSObjectLinker should give priority to beans linker for property get/set
-
- Resolved
-
-
JDK-8081197 BrowserJSObjectLinker should give priority to beans linker for property get/set
-
- Resolved
-
-
JDK-8085569 BrowserJSObjectLinker should give priority to beans linker for property get/set
-
- Resolved
-
-
JDK-8087072 BrowserJSObjectLinker should give priority to beans linker for property get/set
-
- Resolved
-
-
JDK-8138482 BrowserJSObjectLinker should give priority to beans linker for property get/set
-
- Resolved
-