src/share/classes/java/time/MonthDay.java

Print this page

        

*** 436,446 **** switch ((ChronoField) field) { // alignedDOW and alignedWOM not supported because they cannot be set in with() case DAY_OF_MONTH: return day; case MONTH_OF_YEAR: return month; } ! throw new UnsupportedTemporalTypeException("Unsupported field: " + field.getName()); } return field.getFrom(this); } //----------------------------------------------------------------------- --- 436,446 ---- switch ((ChronoField) field) { // alignedDOW and alignedWOM not supported because they cannot be set in with() case DAY_OF_MONTH: return day; case MONTH_OF_YEAR: return month; } ! throw new UnsupportedTemporalTypeException("Unsupported field: " + field); } return field.getFrom(this); } //-----------------------------------------------------------------------