-
Bug
-
Resolution: Fixed
-
P3
-
8u40, 9
-
None
-
b32
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085726 | emb-9 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | team |
JDK-8064230 | 8u45 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b01 |
JDK-8058623 | 8u40 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b08 |
JDK-8070467 | emb-8u47 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | team |
File: test.js
var BufferedWriter = java.io.BufferedWriter;
var StringWriter = java.io.StringWriter;
var w = new BufferedWriter(new StringWriter());
var s = "hello";
w.write(s + "world");
Exception in thread "main" java.lang.RuntimeException: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(java.lang.String), (int)] of the method java.io.BufferedWriter.write for argument types [jdk.nashorn.internal.runtime.ConsString]
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:385)
at jdk.nashorn.tools.Shell.apply(Shell.java:394)
at jdk.nashorn.tools.Shell.runScripts(Shell.java:323)
at jdk.nashorn.tools.Shell.run(Shell.java:169)
at jdk.nashorn.tools.Shell.main(Shell.java:133)
at jdk.nashorn.tools.Shell.main(Shell.java:112)
Caused by: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(java.lang.String), (int)] of the method java.io.BufferedWriter.write for argument types [jdk.nashorn.internal.runtime.ConsString]
at jdk.internal.dynalink.beans.OverloadedMethod.throwAmbiguousMethod(OverloadedMethod.java:225)
at jdk.nashorn.internal.scripts.Script$Recompilation$3$test$cu2$restOf.:program(test.js:5)
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:636)
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:636)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:632)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:226)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:381)
... 5 more
var BufferedWriter = java.io.BufferedWriter;
var StringWriter = java.io.StringWriter;
var w = new BufferedWriter(new StringWriter());
var s = "hello";
w.write(s + "world");
Exception in thread "main" java.lang.RuntimeException: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(java.lang.String), (int)] of the method java.io.BufferedWriter.write for argument types [jdk.nashorn.internal.runtime.ConsString]
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:385)
at jdk.nashorn.tools.Shell.apply(Shell.java:394)
at jdk.nashorn.tools.Shell.runScripts(Shell.java:323)
at jdk.nashorn.tools.Shell.run(Shell.java:169)
at jdk.nashorn.tools.Shell.main(Shell.java:133)
at jdk.nashorn.tools.Shell.main(Shell.java:112)
Caused by: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(java.lang.String), (int)] of the method java.io.BufferedWriter.write for argument types [jdk.nashorn.internal.runtime.ConsString]
at jdk.internal.dynalink.beans.OverloadedMethod.throwAmbiguousMethod(OverloadedMethod.java:225)
at jdk.nashorn.internal.scripts.Script$Recompilation$3$test$cu2$restOf.:program(test.js:5)
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:636)
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:636)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:632)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:226)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:381)
... 5 more
- backported by
-
JDK-8058623 Overload resolution ambiguity involving ConsString
- Resolved
-
JDK-8064230 Overload resolution ambiguity involving ConsString
- Resolved
-
JDK-8070467 Overload resolution ambiguity involving ConsString
- Resolved
-
JDK-8085726 Overload resolution ambiguity involving ConsString
- Resolved