/* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. * */ // Interface that should get a ClassFormatException for the "//" in the name // package p1; // public interface cls1 {} class p1//BadInterface1 { 0xCAFEBABE; 0; // minor version 53; // version [] { // Constant Pool ; // first element is empty class #5; // #1 class #6; // #2 Utf8 "SourceFile"; // #3 Utf8 "BadInterface1.java"; // #4 Utf8 "p1//BadInterface1"; // #5 Utf8 "java/lang/Object"; // #6 } // Constant Pool 0x0601; // access #1;// this_cpx #2;// super_cpx [] { // Interfaces } // Interfaces [] { // fields } // fields [] { // methods } // methods [] { // Attributes Attr(#3) { // SourceFile #4; } // end SourceFile } // Attributes } // end class p1//BadInterface1