diff --git a/test/hotspot/jtreg/compiler/controldependency/TestAntiDependencyForPinnedLoads.java b/test/hotspot/jtreg/compiler/controldependency/TestAntiDependencyForPinnedLoads.java index 99b05538070..977c18affc2 100644 --- a/test/hotspot/jtreg/compiler/controldependency/TestAntiDependencyForPinnedLoads.java +++ b/test/hotspot/jtreg/compiler/controldependency/TestAntiDependencyForPinnedLoads.java @@ -34,12 +34,12 @@ package compiler.controldependency; public class TestAntiDependencyForPinnedLoads { - public static void main(String[] args) { - for(int i = 0; i < 50_000; i++) { - String str = "YYYY年MM月DD日"; - StringBuffer strBuffer = new StringBuffer(str); - String revStr = strBuffer.reverse().toString(); - if (!revStr.equals("日DD月MM年YYYY")) throw new InternalError("FAIL"); + public static void main(String[] args) { + for(int i = 0; i < 50_000; i++) { + String str = "YYYY年MM月DD日"; + StringBuffer strBuffer = new StringBuffer(str); + String revStr = strBuffer.reverse().toString(); + if (!revStr.equals("日DD月MM年YYYY")) throw new InternalError("FAIL"); + } } - } } \ No newline at end of file