mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
7113519: test/tools/javac/VersionOpt.java passes on windows
Reviewed-by: jjg
This commit is contained in:
parent
a476a195ac
commit
7258bbbfde
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -61,7 +61,7 @@ public class VersionOpt {
|
||||||
javaHome = javaHome.getParentFile();
|
javaHome = javaHome.getParentFile();
|
||||||
File toolsJar = new File(new File(javaHome, "lib"), "tools.jar");
|
File toolsJar = new File(new File(javaHome, "lib"), "tools.jar");
|
||||||
|
|
||||||
if (!javacHome.equals(toolsJar.toURI().toString())){
|
if (!javacHome.equalsIgnoreCase(toolsJar.toURI().toString())) {
|
||||||
System.err.println("javac not found in tools.jar: " + javacHome);
|
System.err.println("javac not found in tools.jar: " + javacHome);
|
||||||
System.err.println("rest of test skipped");
|
System.err.println("rest of test skipped");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue