Change test to use a public API method to avoid an implementation
dependency on core-icu4j.
java.lang.reflect.Modifier.classModifiers() is a public static getter
returning a simple static field, just like
android.icu.util.TimeZone.getDefaultTimeZoneType, and we dex2oat with
the implementation dex jars for core-oj where it's implemented.
Test: art/test/testrunner/testrunner.py --target --64 -t 683
Test: art/test/testrunner/testrunner.py --host -t 683
Bug: 202711962
Change-Id: If099f0e8ec9c0057e2b7852e6823e65ecab2112c
diff --git a/test/683-clinit-inline-static-invoke/src-multidex/MyModifier.java b/test/683-clinit-inline-static-invoke/src-multidex/MyModifier.java
new file mode 100644
index 0000000..bc01940
--- /dev/null
+++ b/test/683-clinit-inline-static-invoke/src-multidex/MyModifier.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 java.lang.reflect.Modifier;
+
+public abstract class MyModifier extends Modifier {
+ // Reference to MyModifier.classModifiers() shall resolve to
+ // Modifier.classModifiers() which should be easily inlined.
+}