Please review JDK-8068889 at <http://cr.openjdk.java.net/~attila/8068889/webrev.00> for <https://bugs.openjdk.java.net/browse/JDK-8068889>
To fix the problem, I moved the linking code from NashornBottomLinker to NashornBeansLinker, and changed it to invoke GuardedInvocation.asTypeSafeReturn with a new NashornBeansLinkerServices(linkerServices) instead of using Bootstrap.asTypeSafeReturn with original linkerServices. NashornBeansLinkerServices.asType() then applies the required parameter filters that convert ConsString to String etc. Thanks, Attila.
