< prev index next >

test/runtime/modules/acc_module.jcod

Print this page




   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  * This class consists of the following java code, but has an illegal class
  26  * access_flags value of 0x8000, that should be ignored by the JVM.

  27  *
  28  *    public class acc_module {
  29  *       public static void main(String[] args) {
  30  *            System.out.println("hello");
  31  *        }
  32  *    }
  33  */
  34 class acc_module {
  35   0xCAFEBABE;
  36   0; // minor version
  37   52; // version
  38   [29] { // Constant Pool
  39     ; // first element is empty
  40     Method #6 #15; // #1     at 0x0A
  41     Field #16 #17; // #2     at 0x0F
  42     String #18; // #3     at 0x14
  43     Method #19 #20; // #4     at 0x17
  44     class #21; // #5     at 0x1C
  45     class #22; // #6     at 0x1F
  46     Utf8 "<init>"; // #7     at 0x22




   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  * This class consists of the following java code, but has an illegal class
  26  * access_flags value of 0x8000, that should be ignored by the JVM because
  27  * the class file version is < 53.
  28  *
  29  *    public class acc_module {
  30  *       public static void main(String[] args) {
  31  *            System.out.println("hello");
  32  *        }
  33  *    }
  34  */
  35 class acc_module {
  36   0xCAFEBABE;
  37   0; // minor version
  38   52; // version
  39   [29] { // Constant Pool
  40     ; // first element is empty
  41     Method #6 #15; // #1     at 0x0A
  42     Field #16 #17; // #2     at 0x0F
  43     String #18; // #3     at 0x14
  44     Method #19 #20; // #4     at 0x17
  45     class #21; // #5     at 0x1C
  46     class #22; // #6     at 0x1F
  47     Utf8 "<init>"; // #7     at 0x22


< prev index next >