jdk/src/java.base/share/classes/sun/util/calendar/LocalGregorianCalendar.java
changeset 37781 71ed5645f17c
parent 37593 824750ada3d6
equal deleted inserted replaced
37780:06f3783b338f 37781:71ed5645f17c
   142             return null;
   142             return null;
   143         }
   143         }
   144 
   144 
   145         // Append an era to the predefined eras if it's given by the property.
   145         // Append an era to the predefined eras if it's given by the property.
   146         String prop = GetPropertyAction
   146         String prop = GetPropertyAction
   147                 .getProperty("jdk.calendar.japanese.supplemental.era");
   147                 .privilegedGetProperty("jdk.calendar.japanese.supplemental.era");
   148         if (prop != null) {
   148         if (prop != null) {
   149             Era era = parseEraEntry(prop);
   149             Era era = parseEraEntry(prop);
   150             if (era != null) {
   150             if (era != null) {
   151                 if (isValidEra(era, JAPANESE_ERAS)) {
   151                 if (isValidEra(era, JAPANESE_ERAS)) {
   152                     int length = JAPANESE_ERAS.length;
   152                     int length = JAPANESE_ERAS.length;