Name: yyT116575 Date: 01/23/2001
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)
Calling Class.getMethod() with a null as first argument (name of the method)
causes thread death.
eg code:
import java.lang.reflect.Method;
public class tdt {
public static void main (String[] argv) {
Class c = "".getClass();
Method m;
try {
m = c.getMethod(null, new Class[] { new Object().getClass() });
} catch (NoSuchMethodException nsme) {
System.out.println("never gets here");
}
}
}
error report:
#
# HotSpot Virtual Machine Error, Unexpected Signal 11
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 4F533F534F4C415249530E435050079A 01
#
# Problematic Thread: prio=5 tid=0x28378 nid=0x1 runnable
#
Abort (core dumped)
(Review ID: 115655)
======================================================================
- duplicates
-
JDK-4394380 no check for null in Class.getMethod(String name, Class[ ] parameters)
-
- Closed
-