xref: /aosp_15_r20/art/test/815-invokeinterface-default/src/Main.java (revision 795d594fd825385562da6b089ea9b2033f3abf5a)
1*795d594fSAndroid Build Coastguard Worker /*
2*795d594fSAndroid Build Coastguard Worker  * Copyright (C) 2021 The Android Open Source Project
3*795d594fSAndroid Build Coastguard Worker  *
4*795d594fSAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*795d594fSAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*795d594fSAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*795d594fSAndroid Build Coastguard Worker  *
8*795d594fSAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
9*795d594fSAndroid Build Coastguard Worker  *
10*795d594fSAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*795d594fSAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*795d594fSAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*795d594fSAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*795d594fSAndroid Build Coastguard Worker  * limitations under the License.
15*795d594fSAndroid Build Coastguard Worker  */
16*795d594fSAndroid Build Coastguard Worker 
17*795d594fSAndroid Build Coastguard Worker import java.lang.reflect.Method;
18*795d594fSAndroid Build Coastguard Worker 
19*795d594fSAndroid Build Coastguard Worker // An interface with enough methods to trigger a conflict.
20*795d594fSAndroid Build Coastguard Worker interface Itf {
method0a()21*795d594fSAndroid Build Coastguard Worker     public void method0a();
method0b()22*795d594fSAndroid Build Coastguard Worker     public void method0b();
method0c()23*795d594fSAndroid Build Coastguard Worker     public void method0c();
method0d()24*795d594fSAndroid Build Coastguard Worker     public void method0d();
method0e()25*795d594fSAndroid Build Coastguard Worker     public void method0e();
method0f()26*795d594fSAndroid Build Coastguard Worker     public void method0f();
method0g()27*795d594fSAndroid Build Coastguard Worker     public void method0g();
method0h()28*795d594fSAndroid Build Coastguard Worker     public void method0h();
method0i()29*795d594fSAndroid Build Coastguard Worker     public void method0i();
method0j()30*795d594fSAndroid Build Coastguard Worker     public void method0j();
method0k()31*795d594fSAndroid Build Coastguard Worker     public void method0k();
method0l()32*795d594fSAndroid Build Coastguard Worker     public void method0l();
method0m()33*795d594fSAndroid Build Coastguard Worker     public void method0m();
method0n()34*795d594fSAndroid Build Coastguard Worker     public void method0n();
method0o()35*795d594fSAndroid Build Coastguard Worker     public void method0o();
method0p()36*795d594fSAndroid Build Coastguard Worker     public void method0p();
method0q()37*795d594fSAndroid Build Coastguard Worker     public void method0q();
method0r()38*795d594fSAndroid Build Coastguard Worker     public void method0r();
method0s()39*795d594fSAndroid Build Coastguard Worker     public void method0s();
method0t()40*795d594fSAndroid Build Coastguard Worker     public void method0t();
method0u()41*795d594fSAndroid Build Coastguard Worker     public void method0u();
method0v()42*795d594fSAndroid Build Coastguard Worker     public void method0v();
method0w()43*795d594fSAndroid Build Coastguard Worker     public void method0w();
method0x()44*795d594fSAndroid Build Coastguard Worker     public void method0x();
method0y()45*795d594fSAndroid Build Coastguard Worker     public void method0y();
method0z()46*795d594fSAndroid Build Coastguard Worker     public void method0z();
method1a()47*795d594fSAndroid Build Coastguard Worker     public void method1a();
method1b()48*795d594fSAndroid Build Coastguard Worker     public void method1b();
method1c()49*795d594fSAndroid Build Coastguard Worker     public void method1c();
method1d()50*795d594fSAndroid Build Coastguard Worker     public void method1d();
method1e()51*795d594fSAndroid Build Coastguard Worker     public void method1e();
method1f()52*795d594fSAndroid Build Coastguard Worker     public void method1f();
method1g()53*795d594fSAndroid Build Coastguard Worker     public void method1g();
method1h()54*795d594fSAndroid Build Coastguard Worker     public void method1h();
method1i()55*795d594fSAndroid Build Coastguard Worker     public void method1i();
method1j()56*795d594fSAndroid Build Coastguard Worker     public void method1j();
method1k()57*795d594fSAndroid Build Coastguard Worker     public void method1k();
method1l()58*795d594fSAndroid Build Coastguard Worker     public void method1l();
method1m()59*795d594fSAndroid Build Coastguard Worker     public void method1m();
method1n()60*795d594fSAndroid Build Coastguard Worker     public void method1n();
method1o()61*795d594fSAndroid Build Coastguard Worker     public void method1o();
method1p()62*795d594fSAndroid Build Coastguard Worker     public void method1p();
method1q()63*795d594fSAndroid Build Coastguard Worker     public void method1q();
method1r()64*795d594fSAndroid Build Coastguard Worker     public void method1r();
method1s()65*795d594fSAndroid Build Coastguard Worker     public void method1s();
method1t()66*795d594fSAndroid Build Coastguard Worker     public void method1t();
method1u()67*795d594fSAndroid Build Coastguard Worker     public void method1u();
method1v()68*795d594fSAndroid Build Coastguard Worker     public void method1v();
method1w()69*795d594fSAndroid Build Coastguard Worker     public void method1w();
method1x()70*795d594fSAndroid Build Coastguard Worker     public void method1x();
method1y()71*795d594fSAndroid Build Coastguard Worker     public void method1y();
method1z()72*795d594fSAndroid Build Coastguard Worker     public void method1z();
method2a()73*795d594fSAndroid Build Coastguard Worker     public void method2a();
method2b()74*795d594fSAndroid Build Coastguard Worker     public void method2b();
method2c()75*795d594fSAndroid Build Coastguard Worker     public void method2c();
method2d()76*795d594fSAndroid Build Coastguard Worker     public void method2d();
method2e()77*795d594fSAndroid Build Coastguard Worker     public void method2e();
method2f()78*795d594fSAndroid Build Coastguard Worker     public void method2f();
method2g()79*795d594fSAndroid Build Coastguard Worker     public void method2g();
method2h()80*795d594fSAndroid Build Coastguard Worker     public void method2h();
method2i()81*795d594fSAndroid Build Coastguard Worker     public void method2i();
method2j()82*795d594fSAndroid Build Coastguard Worker     public void method2j();
method2k()83*795d594fSAndroid Build Coastguard Worker     public void method2k();
method2l()84*795d594fSAndroid Build Coastguard Worker     public void method2l();
method2m()85*795d594fSAndroid Build Coastguard Worker     public void method2m();
method2n()86*795d594fSAndroid Build Coastguard Worker     public void method2n();
method2o()87*795d594fSAndroid Build Coastguard Worker     public void method2o();
method2p()88*795d594fSAndroid Build Coastguard Worker     public void method2p();
method2q()89*795d594fSAndroid Build Coastguard Worker     public void method2q();
method2r()90*795d594fSAndroid Build Coastguard Worker     public void method2r();
method2s()91*795d594fSAndroid Build Coastguard Worker     public void method2s();
method2t()92*795d594fSAndroid Build Coastguard Worker     public void method2t();
method2u()93*795d594fSAndroid Build Coastguard Worker     public void method2u();
method2v()94*795d594fSAndroid Build Coastguard Worker     public void method2v();
method2w()95*795d594fSAndroid Build Coastguard Worker     public void method2w();
method2x()96*795d594fSAndroid Build Coastguard Worker     public void method2x();
method2y()97*795d594fSAndroid Build Coastguard Worker     public void method2y();
method2z()98*795d594fSAndroid Build Coastguard Worker     public void method2z();
99*795d594fSAndroid Build Coastguard Worker 
$noinline$defaultRecursiveMethod(boolean callRecursive)100*795d594fSAndroid Build Coastguard Worker     public default void $noinline$defaultRecursiveMethod(boolean callRecursive) {
101*795d594fSAndroid Build Coastguard Worker         if (callRecursive) {
102*795d594fSAndroid Build Coastguard Worker             $noinline$defaultRecursiveMethod(false);
103*795d594fSAndroid Build Coastguard Worker         }
104*795d594fSAndroid Build Coastguard Worker     }
105*795d594fSAndroid Build Coastguard Worker }
106*795d594fSAndroid Build Coastguard Worker 
107*795d594fSAndroid Build Coastguard Worker public class Main implements Itf {
main(String[] args)108*795d594fSAndroid Build Coastguard Worker     public static void main(String[] args) throws Exception {
109*795d594fSAndroid Build Coastguard Worker         Main main = new Main();
110*795d594fSAndroid Build Coastguard Worker         main.$noinline$defaultRecursiveMethod(true);
111*795d594fSAndroid Build Coastguard Worker     }
112*795d594fSAndroid Build Coastguard Worker 
method0a()113*795d594fSAndroid Build Coastguard Worker     public void method0a() {}
method0b()114*795d594fSAndroid Build Coastguard Worker     public void method0b() {}
method0c()115*795d594fSAndroid Build Coastguard Worker     public void method0c() {}
method0d()116*795d594fSAndroid Build Coastguard Worker     public void method0d() {}
method0e()117*795d594fSAndroid Build Coastguard Worker     public void method0e() {}
method0f()118*795d594fSAndroid Build Coastguard Worker     public void method0f() {}
method0g()119*795d594fSAndroid Build Coastguard Worker     public void method0g() {}
method0h()120*795d594fSAndroid Build Coastguard Worker     public void method0h() {}
method0i()121*795d594fSAndroid Build Coastguard Worker     public void method0i() {}
method0j()122*795d594fSAndroid Build Coastguard Worker     public void method0j() {}
method0k()123*795d594fSAndroid Build Coastguard Worker     public void method0k() {}
method0l()124*795d594fSAndroid Build Coastguard Worker     public void method0l() {}
method0m()125*795d594fSAndroid Build Coastguard Worker     public void method0m() {}
method0n()126*795d594fSAndroid Build Coastguard Worker     public void method0n() {}
method0o()127*795d594fSAndroid Build Coastguard Worker     public void method0o() {}
method0p()128*795d594fSAndroid Build Coastguard Worker     public void method0p() {}
method0q()129*795d594fSAndroid Build Coastguard Worker     public void method0q() {}
method0r()130*795d594fSAndroid Build Coastguard Worker     public void method0r() {}
method0s()131*795d594fSAndroid Build Coastguard Worker     public void method0s() {}
method0t()132*795d594fSAndroid Build Coastguard Worker     public void method0t() {}
method0u()133*795d594fSAndroid Build Coastguard Worker     public void method0u() {}
method0v()134*795d594fSAndroid Build Coastguard Worker     public void method0v() {}
method0w()135*795d594fSAndroid Build Coastguard Worker     public void method0w() {}
method0x()136*795d594fSAndroid Build Coastguard Worker     public void method0x() {}
method0y()137*795d594fSAndroid Build Coastguard Worker     public void method0y() {}
method0z()138*795d594fSAndroid Build Coastguard Worker     public void method0z() {}
method1a()139*795d594fSAndroid Build Coastguard Worker     public void method1a() {}
method1b()140*795d594fSAndroid Build Coastguard Worker     public void method1b() {}
method1c()141*795d594fSAndroid Build Coastguard Worker     public void method1c() {}
method1d()142*795d594fSAndroid Build Coastguard Worker     public void method1d() {}
method1e()143*795d594fSAndroid Build Coastguard Worker     public void method1e() {}
method1f()144*795d594fSAndroid Build Coastguard Worker     public void method1f() {}
method1g()145*795d594fSAndroid Build Coastguard Worker     public void method1g() {}
method1h()146*795d594fSAndroid Build Coastguard Worker     public void method1h() {}
method1i()147*795d594fSAndroid Build Coastguard Worker     public void method1i() {}
method1j()148*795d594fSAndroid Build Coastguard Worker     public void method1j() {}
method1k()149*795d594fSAndroid Build Coastguard Worker     public void method1k() {}
method1l()150*795d594fSAndroid Build Coastguard Worker     public void method1l() {}
method1m()151*795d594fSAndroid Build Coastguard Worker     public void method1m() {}
method1n()152*795d594fSAndroid Build Coastguard Worker     public void method1n() {}
method1o()153*795d594fSAndroid Build Coastguard Worker     public void method1o() {}
method1p()154*795d594fSAndroid Build Coastguard Worker     public void method1p() {}
method1q()155*795d594fSAndroid Build Coastguard Worker     public void method1q() {}
method1r()156*795d594fSAndroid Build Coastguard Worker     public void method1r() {}
method1s()157*795d594fSAndroid Build Coastguard Worker     public void method1s() {}
method1t()158*795d594fSAndroid Build Coastguard Worker     public void method1t() {}
method1u()159*795d594fSAndroid Build Coastguard Worker     public void method1u() {}
method1v()160*795d594fSAndroid Build Coastguard Worker     public void method1v() {}
method1w()161*795d594fSAndroid Build Coastguard Worker     public void method1w() {}
method1x()162*795d594fSAndroid Build Coastguard Worker     public void method1x() {}
method1y()163*795d594fSAndroid Build Coastguard Worker     public void method1y() {}
method1z()164*795d594fSAndroid Build Coastguard Worker     public void method1z() {}
method2a()165*795d594fSAndroid Build Coastguard Worker     public void method2a() {}
method2b()166*795d594fSAndroid Build Coastguard Worker     public void method2b() {}
method2c()167*795d594fSAndroid Build Coastguard Worker     public void method2c() {}
method2d()168*795d594fSAndroid Build Coastguard Worker     public void method2d() {}
method2e()169*795d594fSAndroid Build Coastguard Worker     public void method2e() {}
method2f()170*795d594fSAndroid Build Coastguard Worker     public void method2f() {}
method2g()171*795d594fSAndroid Build Coastguard Worker     public void method2g() {}
method2h()172*795d594fSAndroid Build Coastguard Worker     public void method2h() {}
method2i()173*795d594fSAndroid Build Coastguard Worker     public void method2i() {}
method2j()174*795d594fSAndroid Build Coastguard Worker     public void method2j() {}
method2k()175*795d594fSAndroid Build Coastguard Worker     public void method2k() {}
method2l()176*795d594fSAndroid Build Coastguard Worker     public void method2l() {}
method2m()177*795d594fSAndroid Build Coastguard Worker     public void method2m() {}
method2n()178*795d594fSAndroid Build Coastguard Worker     public void method2n() {}
method2o()179*795d594fSAndroid Build Coastguard Worker     public void method2o() {}
method2p()180*795d594fSAndroid Build Coastguard Worker     public void method2p() {}
method2q()181*795d594fSAndroid Build Coastguard Worker     public void method2q() {}
method2r()182*795d594fSAndroid Build Coastguard Worker     public void method2r() {}
method2s()183*795d594fSAndroid Build Coastguard Worker     public void method2s() {}
method2t()184*795d594fSAndroid Build Coastguard Worker     public void method2t() {}
method2u()185*795d594fSAndroid Build Coastguard Worker     public void method2u() {}
method2v()186*795d594fSAndroid Build Coastguard Worker     public void method2v() {}
method2w()187*795d594fSAndroid Build Coastguard Worker     public void method2w() {}
method2x()188*795d594fSAndroid Build Coastguard Worker     public void method2x() {}
method2y()189*795d594fSAndroid Build Coastguard Worker     public void method2y() {}
method2z()190*795d594fSAndroid Build Coastguard Worker     public void method2z() {}
191*795d594fSAndroid Build Coastguard Worker }
192