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 * @test
26 * @bug 8042235
27 * @summary redefining method used by multiple MethodHandles crashes VM
28 * @library /
29 * @modules java.base/jdk.internal.org.objectweb.asm
30 * java.compiler
31 * java.instrument
32 * java.management
33 *
34 * @run main/othervm compiler.jsr292.RedefineMethodUsedByMultipleMethodHandles
35 */
36
37 package compiler.jsr292;
38
39 import jdk.internal.org.objectweb.asm.ClassReader;
40 import jdk.internal.org.objectweb.asm.ClassVisitor;
41 import jdk.internal.org.objectweb.asm.ClassWriter;
42 import jdk.internal.org.objectweb.asm.MethodVisitor;
43 import jdk.internal.org.objectweb.asm.Opcodes;
44
45 import javax.tools.ToolProvider;
46 import java.io.FileOutputStream;
47 import java.io.IOException;
48 import java.io.InputStream;
|
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 * @test
26 * @bug 8042235
27 * @summary redefining method used by multiple MethodHandles crashes VM
28 * @library /
29 * @requires vm.flavor != "minimal"
30 * @modules java.base/jdk.internal.org.objectweb.asm
31 * java.compiler
32 * java.instrument
33 * java.management
34 *
35 * @run main/othervm compiler.jsr292.RedefineMethodUsedByMultipleMethodHandles
36 */
37
38 package compiler.jsr292;
39
40 import jdk.internal.org.objectweb.asm.ClassReader;
41 import jdk.internal.org.objectweb.asm.ClassVisitor;
42 import jdk.internal.org.objectweb.asm.ClassWriter;
43 import jdk.internal.org.objectweb.asm.MethodVisitor;
44 import jdk.internal.org.objectweb.asm.Opcodes;
45
46 import javax.tools.ToolProvider;
47 import java.io.FileOutputStream;
48 import java.io.IOException;
49 import java.io.InputStream;
|