jdk/src/share/classes/java/time/temporal/JulianFields.java
changeset 20793 5acd4b8d70a1
parent 19030 32f129cb6351
child 20873 e91d5b1cb8e6
--- a/jdk/src/share/classes/java/time/temporal/JulianFields.java	Tue Oct 15 13:01:28 2013 +0200
+++ b/jdk/src/share/classes/java/time/temporal/JulianFields.java	Thu Sep 26 23:05:29 2013 -0700
@@ -291,13 +291,14 @@
         //-----------------------------------------------------------------------
         @Override
         public ChronoLocalDate resolve(
-                Map<TemporalField, Long> fieldValues, Chronology chronology, ZoneId zone, ResolverStyle resolverStyle) {
+                Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) {
             long value = fieldValues.remove(this);
+            Chronology chrono = Chronology.from(partialTemporal);
             if (resolverStyle == ResolverStyle.LENIENT) {
-                return chronology.dateEpochDay(Math.subtractExact(value, offset));
+                return chrono.dateEpochDay(Math.subtractExact(value, offset));
             }
             range().checkValidValue(value, this);
-            return chronology.dateEpochDay(value - offset);
+            return chrono.dateEpochDay(value - offset);
         }
 
         //-----------------------------------------------------------------------