Avoid using deprecated source API Project: http://git-wip-us.apache.org/repos/asf/incubator-netbeans-html4j/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-netbeans-html4j/commit/edff3d39 Tree: http://git-wip-us.apache.org/repos/asf/incubator-netbeans-html4j/tree/edff3d39 Diff: http://git-wip-us.apache.org/repos/asf/incubator-netbeans-html4j/diff/edff3d39
Branch: refs/heads/master Commit: edff3d39258677c95f9af655a852b4db64db6ea0 Parents: 36ffe2a Author: Jaroslav Tulach <[email protected]> Authored: Fri Feb 3 07:05:18 2017 +0100 Committer: Jaroslav Tulach <[email protected]> Committed: Fri Sep 8 17:13:55 2017 +0200 ---------------------------------------------------------------------- .../java/net/java/html/boot/truffle/TruffleJavaScriptTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-netbeans-html4j/blob/edff3d39/boot-truffle/src/test/java/net/java/html/boot/truffle/TruffleJavaScriptTest.java ---------------------------------------------------------------------- diff --git a/boot-truffle/src/test/java/net/java/html/boot/truffle/TruffleJavaScriptTest.java b/boot-truffle/src/test/java/net/java/html/boot/truffle/TruffleJavaScriptTest.java index ac4c4f5..0ee3cbe 100644 --- a/boot-truffle/src/test/java/net/java/html/boot/truffle/TruffleJavaScriptTest.java +++ b/boot-truffle/src/test/java/net/java/html/boot/truffle/TruffleJavaScriptTest.java @@ -74,7 +74,7 @@ public class TruffleJavaScriptTest { PolyglotEngine engine = PolyglotEngine.newBuilder().build(); PolyglotEngine.Value result = null; try { - result = engine.eval(Source.fromText("6 * 7", "test.js").withMimeType("text/javascript")); + result = engine.eval(Source.newBuilder("6 * 7").name("test.js").mimeType("text/javascript").build()); } catch (Exception notSupported) { if (notSupported.getMessage().contains("text/javascript")) { return new Object[] { new Skip(true, notSupported.getMessage()) };
