Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2039010 | 1.4.0 | Coleen Phillimore | P2 | Closed | Fixed | beta |
Name: rmT116609 Date: 12/01/2000
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
This piece of code generates the following error on the VM :
import java.lang.reflect.Method;
class Test{
public static void main(String a[]){
Class clazz;
try {
clazz = Class.forName("java.lang.String");
} catch ( ClassNotFoundException ce ) {
return;
}
try {
Method method = clazz.getMethod(null, null);
} catch ( NoSuchMethodException e ) {
e.printStackTrace();
return;
}
}
}
#
# HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 4F533F57494E13120E43505002D4
#
abnormal program termination
I guess there is no check for null for the method name.
The bug was reported that the problem occurs on win32. But
the problem occurs on Solaris and Linux. Please see the comments
section for more information.
(Review ID: 113119)
======================================================================
- backported by
-
JDK-2039010 no check for null in Class.getMethod(String name, Class[ ] parameters)
-
- Closed
-
- duplicates
-
JDK-4407493 thread death and core dump when calling Class.getMethod(null, Class[])
-
- Closed
-