1# /*
2#  * Copyright 2016 The Android Open Source Project
3#  *
4#  * Licensed under the Apache License, Version 2.0 (the "License");
5#  * you may not use this file except in compliance with the License.
6#  * You may obtain a copy of the License at
7#  *
8#  *      http://www.apache.org/licenses/LICENSE-2.0
9#  *
10#  * Unless required by applicable law or agreed to in writing, software
11#  * distributed under the License is distributed on an "AS IS" BASIS,
12#  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13#  * See the License for the specific language governing permissions and
14#  * limitations under the License.
15#  */
16
17.class public interface LDefaultInterface;
18.super Ljava/lang/Object;
19
20# public interface DefaultInterface {
21#     public default void JniCallNonOverridenDefaultMethod() {
22#         System.out.println("DefaultInterface.JniCallNonOverridenDefaultMethod");
23#     }
24#
25#     public default void JniCallOverridenDefaultMethod() {
26#         System.out.println("DefaultInterface.JniCallOverridenDefaultMethod");
27#     }
28#
29#     public void JniCallOverridenAbstractMethod();
30#
31#     public default void JniCallConflictDefaultMethod() {
32#         System.out.println("DefaultInterface.JniCallConflictDefaultMethod");
33#     }
34#
35#     public default void JniCallSoftConflictMethod() {
36#         System.out.println("DefaultInterface.JniCallSoftConflictMethod");
37#     }
38# }
39
40.method public JniCallNonOverridenDefaultMethod()V
41    .locals 2
42
43    const-string v0, "DefaultInterface.JniCallNonOverridenDefaultMethod"
44    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;
45    invoke-virtual {v1,v0}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V
46    return-void
47.end method
48
49.method public JniCallOverridenDefaultMethod()V
50    .locals 2
51
52    const-string v0, "DefaultInterface.JniCallOverridenDefaultMethod"
53    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;
54    invoke-virtual {v1,v0}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V
55    return-void
56.end method
57
58.method public abstract JniCallOverridenAbstractMethod()V
59.end method
60
61.method public JniCallConflictDefaultMethod()V
62    .locals 2
63
64    const-string v0, "DefaultInterface.JniCallConflictDefaultMethod"
65    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;
66    invoke-virtual {v1,v0}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V
67    return-void
68.end method
69
70.method public JniCallSoftConflictMethod()V
71    .locals 2
72
73    const-string v0, "DefaultInterface.JniCallSoftConflictMethod"
74    sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;
75    invoke-virtual {v1,v0}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V
76    return-void
77.end method
78