< prev index next >

src/java.base/share/classes/sun/util/calendar/CalendarSystem.java

Print this page

        

*** 155,166 **** if (className.endsWith("LocalGregorianCalendar")) { // Create the specific kind of local Gregorian calendar system cal = LocalGregorianCalendar.getLocalGregorianCalendar(calendarName); } else { try { ! Class<?> cl = Class.forName(className); ! cal = (CalendarSystem) cl.newInstance(); } catch (Exception e) { throw new InternalError(e); } } if (cal == null) { --- 155,167 ---- if (className.endsWith("LocalGregorianCalendar")) { // Create the specific kind of local Gregorian calendar system cal = LocalGregorianCalendar.getLocalGregorianCalendar(calendarName); } else { try { ! @SuppressWarnings("deprecation") ! Object tmp = Class.forName(className).newInstance(); ! cal = (CalendarSystem) tmp; } catch (Exception e) { throw new InternalError(e); } } if (cal == null) {
< prev index next >