UseAllBytecodes.java revision 0
0N/A * Copyright 1996-2005 Sun Microsystems, Inc. All Rights Reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 0N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 0N/A * CA 95054 USA or visit www.sun.com if you need additional information or 0N/A * have any questions. 0N/A A simple Java class definition that helps self-test the runtime 0N/A their _quick variants. 0N/A /* This constructor is not intended to ever be run. It is here 0N/A to force CONSTANT_Methodref constants into the CP */ 0N/A /* This puts a CONSTANT_InterfaceMethodref into the CP */ 0N/A /* This creates an array and puts it into the CP */ 0N/A i2 =
12345678;
/* This puts a CONSTANT_Integer into the CP */ 0N/A d2 =
1.2e234;
/* This puts a CONSTANT_Double into the CP */ 0N/A /* These methods should return something other than their 0N/A arguments, so the self test can easily determine that 0N/A the correct value was returned. */ 0N/A /* This method does the same thing as set_i1. 0N/A It is here to test the invokeinterface opcode. */ 0N/A /* The following 10 methods test various permutations of 0N/A // This should *not* catch the exception; 0N/A // should be caught in test_athrow1. 0N/A // Ultimately throws NullPointerException 0N/A // Ultimately throws NoSuchMethodException