test/hotspot/jtreg/runtime/exceptionMsgs/AbstractMethodError/AME1_E.jasm
changeset 49368 2ed1c37df3a5
equal deleted inserted replaced
49366:f95ef5511e1f 49368:2ed1c37df3a5
       
     1 /*
       
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
       
     3  * Copyright (c) 2018 SAP SE. All rights reserved.
       
     4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     5  *
       
     6  * This code is free software; you can redistribute it and/or modify it
       
     7  * under the terms of the GNU General Public License version 2 only, as
       
     8  * published by the Free Software Foundation.
       
     9  *
       
    10  * This code is distributed in the hope that it will be useful, but WITHOUT
       
    11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    13  * version 2 for more details (a copy is included in the LICENSE file that
       
    14  * accompanied this code).
       
    15  *
       
    16  * You should have received a copy of the GNU General Public License version
       
    17  * 2 along with this work; if not, write to the Free Software Foundation,
       
    18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    19  *
       
    20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
       
    21  * or visit www.oracle.com if you need additional information or have any
       
    22  * questions.
       
    23  */
       
    24 
       
    25 /* Method aFunctionOfMyInterface:"()Ljava/lang/String;" is missing in this implementation to cause error. */
       
    26 
       
    27 class AME1_E extends AME1_B implements AME1_C {
       
    28 
       
    29     public Method "<init>":"()V"
       
    30         stack 1 locals 1
       
    31     {
       
    32         aload_0;
       
    33         invokespecial Method AME1_B."<init>":"()V";
       
    34         return;
       
    35     }
       
    36 
       
    37     public Method firstAbstractMethod:"()Ljava/lang/String;"
       
    38         stack 1 locals 1
       
    39     {
       
    40         aload_0;
       
    41         invokevirtual Method java/lang/Object.getClass:"()Ljava/lang/Class;";
       
    42         invokevirtual Method java/lang/Class.getName:"()Ljava/lang/String;";
       
    43         areturn;
       
    44     }
       
    45 
       
    46     public Method secondAbstractMethod:"()Ljava/lang/String;"
       
    47         stack 1 locals 1
       
    48     {
       
    49         aload_0;
       
    50         invokevirtual Method java/lang/Object.getClass:"()Ljava/lang/Class;";
       
    51         invokevirtual Method java/lang/Class.getName:"()Ljava/lang/String;";
       
    52         areturn;
       
    53     }
       
    54     
       
    55     /* Missing to cause error.
       
    56     public Method anAbstractMethod:"()Ljava/lang/String;"
       
    57         stack 1 locals 1
       
    58     {
       
    59         aload_0;
       
    60         invokevirtual Method java/lang/Object.getClass:"()Ljava/lang/Class;";
       
    61         invokevirtual Method java/lang/Class.getName:"()Ljava/lang/String;";
       
    62         areturn;
       
    63     }
       
    64     */
       
    65 
       
    66     public Method firstFunctionOfMyInterface0:"()Ljava/lang/String;"
       
    67         stack 1 locals 1
       
    68     {
       
    69         aload_0;
       
    70         invokevirtual Method java/lang/Object.getClass:"()Ljava/lang/Class;";
       
    71         invokevirtual Method java/lang/Class.getName:"()Ljava/lang/String;";
       
    72         areturn;
       
    73     }
       
    74 
       
    75     public Method secondFunctionOfMyInterface0:"()Ljava/lang/String;"
       
    76         stack 1 locals 1
       
    77     {
       
    78         aload_0;
       
    79         invokevirtual Method java/lang/Object.getClass:"()Ljava/lang/Class;";
       
    80         invokevirtual Method java/lang/Class.getName:"()Ljava/lang/String;";
       
    81         areturn;
       
    82     }
       
    83 
       
    84     public Method firstFunctionOfMyInterface:"()Ljava/lang/String;"
       
    85         stack 1 locals 1
       
    86     {
       
    87         aload_0;
       
    88         invokevirtual Method java/lang/Object.getClass:"()Ljava/lang/Class;";
       
    89         invokevirtual Method java/lang/Class.getName:"()Ljava/lang/String;";
       
    90         areturn;
       
    91     }
       
    92 
       
    93     public Method secondFunctionOfMyInterface:"()Ljava/lang/String;"
       
    94         stack 1 locals 1
       
    95     {
       
    96         aload_0;
       
    97         invokevirtual Method java/lang/Object.getClass:"()Ljava/lang/Class;";
       
    98         invokevirtual Method java/lang/Class.getName:"()Ljava/lang/String;";
       
    99         areturn;
       
   100     }
       
   101 
       
   102     /* Missing to cause error.
       
   103     public Method aFunctionOfMyInterface:"()Ljava/lang/String;"
       
   104         stack 1 locals 1
       
   105     {
       
   106         aload_0;
       
   107         invokevirtual Method java/lang/Object.getClass:"()Ljava/lang/Class;";
       
   108         invokevirtual Method java/lang/Class.getName:"()Ljava/lang/String;";
       
   109         areturn;
       
   110     }
       
   111     */
       
   112 }