-
Bug
-
Resolution: Fixed
-
P2
-
8, 9
-
None
-
b47
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085582 | emb-9 | Attila Szegedi | P2 | Resolved | Fixed | team |
JDK-8087017 | 8u65 | Attila Szegedi | P2 | Resolved | Fixed | b01 |
JDK-8068921 | 8u60 | Attila Szegedi | P2 | Resolved | Fixed | b01 |
JDK-8071883 | 8u51 | Attila Szegedi | P2 | Resolved | Fixed | b01 |
JDK-8071872 | 8u45 | Attila Szegedi | P2 | Resolved | Fixed | b06 |
JDK-8071382 | 8u40 | Attila Szegedi | P2 | Closed | Fixed | b23 |
JDK-8138506 | emb-8u65 | Unassigned | P2 | Resolved | Fixed | b01 |
JDK-8076931 | emb-8u60 | Attila Szegedi | P2 | Resolved | Fixed | team |
JDK-8072544 | emb-8u47 | Attila Szegedi | P2 | Resolved | Fixed | team |
import java.util.function.Function;
import javax.script.ScriptEngine;
import javax.script.ScriptException;
import jdk.nashorn.api.scripting.NashornScriptEngineFactory;
public class CS {
public static void main(String[] args) throws ScriptException {
ScriptEngine engine = new NashornScriptEngineFactory().getScriptEngine();
engine.put("f", new Function<String, String>() {
@Override
public String apply(String t) {
return t;
}
});
engine.eval("var x = 'a'; x += 'b'; f(x)");
}
}
throws java.lang.ClassCastException: jdk.nashorn.internal.runtime.ConsString cannot be cast to java.lang.String
at CS$1.apply(CS.java:1)
at ...
it should not throw an exception instead.
- backported by
-
JDK-8068921 Calling a @FunctionalInterface from JS leaks internal objects
-
- Resolved
-
-
JDK-8071872 Calling a @FunctionalInterface from JS leaks internal objects
-
- Resolved
-
-
JDK-8071883 Calling a @FunctionalInterface from JS leaks internal objects
-
- Resolved
-
-
JDK-8072544 Calling a @FunctionalInterface from JS leaks internal objects
-
- Resolved
-
-
JDK-8076931 Calling a @FunctionalInterface from JS leaks internal objects
-
- Resolved
-
-
JDK-8085582 Calling a @FunctionalInterface from JS leaks internal objects
-
- Resolved
-
-
JDK-8087017 Calling a @FunctionalInterface from JS leaks internal objects
-
- Resolved
-
-
JDK-8138506 Calling a @FunctionalInterface from JS leaks internal objects
-
- Resolved
-
-
JDK-8071382 Calling a @FunctionalInterface from JS leaks internal objects
-
- Closed
-
- relates to
-
JDK-8069002 REGRESSION: test/script/external/test262/test/suite/ch11/11.2/11.2.3/S11.2.3_A3_T5.js fails with tip
-
- Resolved
-