Skip to content

Commit ab607f1

Browse files
gilles-duboscqmarwan-hallaoui
authored andcommitted
Adapt to JDK-8367031: LocalDate.month & day are shorts again
(cherry picked from commit fc7d171)
1 parent ccbf981 commit ab607f1

File tree

1 file changed

+2
-8
lines changed
  • espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/meta

1 file changed

+2
-8
lines changed

espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/meta/Meta.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,14 +1007,8 @@ public Meta(EspressoContext context) {
10071007

10081008
java_time_LocalDate = knownKlass(Types.java_time_LocalDate);
10091009
java_time_LocalDate_year = java_time_LocalDate.requireDeclaredField(Names.year, Types._int);
1010-
java_time_LocalDate_month = diff() //
1011-
.field(VERSION_24_OR_LOWER, Names.month, Types._short) //
1012-
.field(VERSION_25_OR_HIGHER, Names.month, Types._byte) //
1013-
.field(java_time_LocalDate);
1014-
java_time_LocalDate_day = diff() //
1015-
.field(VERSION_24_OR_LOWER, Names.day, Types._short) //
1016-
.field(VERSION_25_OR_HIGHER, Names.day, Types._byte) //
1017-
.field(java_time_LocalDate);
1010+
java_time_LocalDate_month = java_time_LocalDate.requireDeclaredField(Names.month, Types._short);
1011+
java_time_LocalDate_day = java_time_LocalDate.requireDeclaredField(Names.day, Types._short);
10181012
java_time_LocalDate_of = java_time_LocalDate.requireDeclaredMethod(Names.of, Signatures.LocalDate_int_int_int);
10191013

10201014
java_time_ZonedDateTime = knownKlass(Types.java_time_ZonedDateTime);

0 commit comments

Comments
 (0)