Fix Java6BuiltInsWithJDKMembersTest

After update of the project to JDK 8, the default JDK at java.home is
now JDK 8. However, this test relied on the fact that the default is JDK
6. Pass the path to the JDK 6 explicitly
This commit is contained in:
Alexander Udalov
2017-03-22 12:26:54 +03:00
parent e4ae7ca4ce
commit 6a049c9ab5
5 changed files with 20 additions and 2 deletions
@@ -153,7 +153,12 @@ public class PathUtil {
@NotNull
public static List<File> getJdkClassesRoots() {
return JavaSdkUtil.getJdkClassesRoots(new File(System.getProperty("java.home")), true);
return getJdkClassesRoots(System.getProperty("java.home"));
}
@NotNull
public static List<File> getJdkClassesRoots(@NotNull String javaHome) {
return JavaSdkUtil.getJdkClassesRoots(new File(javaHome), true);
}
@NotNull