publicclass Bug6645263 { publicstaticvoid main(String[] args) {
Calendar cal = new GregorianCalendar(Locale.US);
cal.setLenient(false);
cal.set(Calendar.YEAR, 2007);
cal.set(Calendar.MONTH, Calendar.NOVEMBER);
cal.set(Calendar.WEEK_OF_MONTH, 4);
cal.set(Calendar.DAY_OF_WEEK, 1); // Let cal calculate the time from the given fields
cal.getTime();
// Change DAY_OF_MONTH
cal.set(Calendar.DAY_OF_MONTH, 1); // The following line shouldn't throw an IllegalArgumentException.
cal.getTime();
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.