Skip to content

Commit

Permalink
8335894: [8u] Fix SupplementalJapaneseEraTest.java for jdks with syml…
Browse files Browse the repository at this point in the history
…inked conf dir

Reviewed-by: serb
  • Loading branch information
SendaoYan authored and mrserb committed Aug 16, 2024
1 parent 4538bba commit fb0a658
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jdk/test/java/util/Calendar/SupplementalJapaneseEraTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import java.nio.file.SimpleFileVisitor;
import java.nio.file.StandardCopyOption;
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.FileVisitOption;
import java.text.SimpleDateFormat;
import java.time.chrono.JapaneseChronology;
import java.time.chrono.JapaneseDate;
Expand All @@ -52,6 +53,7 @@
import java.util.Locale;
import java.util.Properties;
import java.util.TimeZone;
import java.util.EnumSet;

import jdk.testlibrary.ProcessTools;
import org.testng.annotations.BeforeTest;
Expand All @@ -71,7 +73,7 @@ public class SupplementalJapaneseEraTest {
public void prepareTestJDK() throws IOException {
Path src = Paths.get(System.getProperty("test.jdk")).toAbsolutePath();
Path dst = Paths.get("testjava").toAbsolutePath();
Files.walkFileTree(src, new CopyFileVisitor(src, dst));
Files.walkFileTree(src, EnumSet.of(FileVisitOption.FOLLOW_LINKS), Integer.MAX_VALUE, new CopyFileVisitor(src, dst));
}

@Test
Expand Down

1 comment on commit fb0a658

@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.