# HG changeset patch # User jjg # Date 1420855381 28800 # Node ID 6869ff192a0e27c73dde7c3505f440c4862d5870 # Parent fa0685d84b74f31121a070eabdf8462a6efaff8d 8068759: ConstFoldTest fails on Windows Reviewed-by: ksrini diff -r fa0685d84b74 -r 6869ff192a0e langtools/test/tools/javac/ConstFoldTest.java --- a/langtools/test/tools/javac/ConstFoldTest.java Fri Jan 09 15:51:20 2015 +0000 +++ b/langtools/test/tools/javac/ConstFoldTest.java Fri Jan 09 18:03:01 2015 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -31,6 +31,8 @@ */ import java.net.URL; +import java.nio.file.Path; +import java.nio.file.Paths; import java.util.List; public class ConstFoldTest { @@ -75,9 +77,10 @@ ToolBox tb = new ToolBox(); URL url = ConstFoldTest.class.getResource("ConstFoldTest$CFTest.class"); + Path file = Paths.get(url.toURI()); List result = tb.new JavapTask() .options("-c") - .classes(url.getFile()) + .classes(file.toString()) .run() .write(ToolBox.OutputKind.DIRECT) .getOutputLines(ToolBox.OutputKind.DIRECT);