ICU-12595 Updated SimpleDateRule class to create a calendar per intance, instead of creating a static calendar instance shared across all SimpleDateRule instances. This change fixes the JUnit test execution issue.

X-SVN-Rev: 38851
This commit is contained in:
Yoshito Umaoka 2016-06-16 15:35:44 +00:00
parent 8bfa8c576b
commit b5b35e4640

View file

@ -219,9 +219,7 @@ public class SimpleDateRule implements DateRule
// calendar = c;
// }
private static GregorianCalendar gCalendar = new GregorianCalendar();
private Calendar calendar = gCalendar;
private Calendar calendar = new GregorianCalendar();
private int month;
private int dayOfMonth;