[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/32952] New: getMethods on java.lang.Class throws NullPoin
From: |
kaz at maczuka dot gcd dot org |
Subject: |
[Bug classpath/32952] New: getMethods on java.lang.Class throws NullPointerException |
Date: |
31 Jul 2007 19:21:47 -0000 |
See the following results.
$ cat Test1.java
import java.lang.reflect.*;
public class Test1 {
public static void main(String[] args) throws Exception {
Class cl = Class.forName(args[0]);
Method[] methods = cl.getMethods();
}
}
$ java Test1 java.lang.Object
$ java Test1 java.util.ArrayList
$ java Test1 java.lang.Class
java.lang.NullPointerException
at java.lang.Class$MethodKey.<init> (Class.java:653)
at java.lang.Class.internalGetMethods (Class.java:847)
at java.lang.Class.getMethods (Class.java:816)
at Test1.main (Test1.java:5)
$
--
Summary: getMethods on java.lang.Class throws
NullPointerException
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kaz at maczuka dot gcd dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32952
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/32952] New: getMethods on java.lang.Class throws NullPointerException,
kaz at maczuka dot gcd dot org <=