Skip to content

Commit

Permalink
8290813: jdk/nashorn/api/scripting/test/ScriptObjectMirrorTest.java f…
Browse files Browse the repository at this point in the history
…ails: assertEquals is ambiguous

Reviewed-by: attila, clanger
  • Loading branch information
gdams authored and RealCLanger committed Jul 22, 2022
1 parent 16a84de commit 5a1377d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -282,7 +282,7 @@ public void conversionTest() throws ScriptException {

ScriptObjectMirror obj = (ScriptObjectMirror)e.eval(
"({ valueOf: function() { return 42 } })");
assertEquals(42.0, obj.to(Double.class));
assertEquals(Double.valueOf(42.0), obj.to(Double.class));

obj = (ScriptObjectMirror)e.eval(
"({ toString: function() { return 'foo' } })");
Expand Down

1 comment on commit 5a1377d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.