Different behavior of WeekFields on JVM 8 and JVM 10
问题 I have really simple program here: public static void main(String[] args) { LocalDate year = LocalDate.ofYearDay(2022, 100); System.out.println(year); System.out.println(WeekFields.of(Locale.GERMAN).weekOfYear()); System.out.println(year.with(WeekFields.of(Locale.GERMAN).weekOfYear(), 0)); System.out.println(year.with(WeekFields.of(Locale.GERMAN).weekOfYear(), 0).with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY))); } But it behaves differently on JVM 8 and JVM 10. The problem seems to