summaryrefslogtreecommitdiff
path: root/test/683-clinit-inline-static-invoke/src-multidex/MyCalendarUtils.java
diff options
context:
space:
mode:
author Sorin Basca <sorinbasca@google.com> 2022-07-22 21:50:38 +0100
committer Treehugger Robot <treehugger-gerrit@google.com> 2022-09-06 16:39:43 +0000
commit0c8b0c159db65db503ada4d6ae1bc9a70adcefc9 (patch)
treeddaa8dce11a9a8df8386d59817337d703b9da9d3 /test/683-clinit-inline-static-invoke/src-multidex/MyCalendarUtils.java
parentf23d409775d2025d4ed1b0cafd72b4e53b139ffe (diff)
Use JDK17-friendly base class in 683-clinit-inline-static-invoke
Bug: 239968561 Bug: 233029164 Test: art/tools/buildbot-build.sh --dist --host Change-Id: Ic07c81a0dbce27eb438b60ad02ca7589e6777369
Diffstat (limited to 'test/683-clinit-inline-static-invoke/src-multidex/MyCalendarUtils.java')
-rw-r--r--test/683-clinit-inline-static-invoke/src-multidex/MyCalendarUtils.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/683-clinit-inline-static-invoke/src-multidex/MyCalendarUtils.java b/test/683-clinit-inline-static-invoke/src-multidex/MyCalendarUtils.java
new file mode 100644
index 0000000000..fc79e327b4
--- /dev/null
+++ b/test/683-clinit-inline-static-invoke/src-multidex/MyCalendarUtils.java
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2018 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import sun.util.calendar.CalendarUtils;
+
+public abstract class MyCalendarUtils extends CalendarUtils {
+ // Reference to MyCalendarUtils.isJulianLeapYear() shall resolve to
+ // CalendarUtils.isJulianLeapYear() which should be easily inlined.
+}