hotspot/test/runtime/classFileParserBug/badEnclMthd.jcod
changeset 31776 70dd826a47b5
equal deleted inserted replaced
31634:0aa645cd8cc3 31776:70dd826a47b5
       
     1 /*
       
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
       
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     4  *
       
     5  * This code is free software; you can redistribute it and/or modify it
       
     6  * under the terms of the GNU General Public License version 2 only, as
       
     7  * published by the Free Software Foundation.
       
     8  *
       
     9  * This code is distributed in the hope that it will be useful, but WITHOUT
       
    10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    12  * version 2 for more details (a copy is included in the LICENSE file that
       
    13  * accompanied this code).
       
    14  *
       
    15  * You should have received a copy of the GNU General Public License version
       
    16  * 2 along with this work; if not, write to the Free Software Foundation,
       
    17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    18  *
       
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
       
    20  * or visit www.oracle.com if you need additional information or have any
       
    21  * questions.
       
    22  *
       
    23  */
       
    24 
       
    25 // Source: badEnclMthd
       
    26 class badEnclMthd {
       
    27     0xCAFEBABE;
       
    28     0; // minor version
       
    29     50; // major version
       
    30     [] { // Constant Pool
       
    31         ; // first element is empty
       
    32         Utf8 "badEnclMthd"; // #1
       
    33         class #1; // #2
       
    34         Utf8 "java/lang/Object"; // #3
       
    35         class #3; // #4
       
    36         Utf8 "InnerClasses"; // #5
       
    37         Utf8 "badEnclMthd"; // #6
       
    38         class #6; // #7
       
    39         Utf8 "badEnclMthd"; // #8
       
    40         class #8; // #9
       
    41     } // Constant Pool
       
    42     0x0001; // access  public
       
    43     #2;// this_cpx
       
    44     #4;// super_cpx
       
    45     [] { // interfaces
       
    46     } // interfaces
       
    47     [] { // fields
       
    48     } // fields
       
    49     [] { // methods
       
    50     } // methods
       
    51     [] { // attributes
       
    52         Attr(#5) { // InnerClasses
       
    53             [] { // InnerClasses
       
    54                 #0 #2 #6 1;  // Bad inner_class_info_index of 0 !!!
       
    55                 #9 #0 #8 1;
       
    56             }
       
    57         } // end InnerClasses
       
    58         ;
       
    59     } // attributes
       
    60 } // end class badEnclMthd