-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2_06, 5.0
-
06
-
x86, sparc
-
linux, solaris_9, windows_2000, windows_xp
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2120277 | 5.0 | Mark Davidson | P3 | Resolved | Fixed | b30 |
###@###.### 2003-11-04
J2SE Version (please include all output from java -version flag):
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b26)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b26, mixed mode)
Does this problem occur on J2SE 1.4 or 1.4.1 or 1.4.2? Yes / No (pick one)
No, works fine with 1.4.2 and 1.5 build 14.
Operating System Configuration Information (be specific):
Windows XP SP1
Hardware Configuration Information (be specific):
512 Mb RAM, 1.3 Ghz processor
Bug Description:
java.beans.Introspector.getBeanInfo(class) throws a NullPointerException if a primitive type is passed in.
Steps to Reproduce (be specific):
import java.beans.*;
public class BeanIntroTest
{
public static void main(String[] args) throws Exception
{
BeanInfo beanInfo = Introspector.getBeanInfo(short.class);
System.out.println("Found "+beanInfo.getPropertyDescriptors().length+" properties");
}
}
The above will output "Found 0 properties" in 1.4.2, but will throw a NullPointerException in 1.5.
###@###.### 10/8/04 14:04 GMT
J2SE Version (please include all output from java -version flag):
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b26)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b26, mixed mode)
Does this problem occur on J2SE 1.4 or 1.4.1 or 1.4.2? Yes / No (pick one)
No, works fine with 1.4.2 and 1.5 build 14.
Operating System Configuration Information (be specific):
Windows XP SP1
Hardware Configuration Information (be specific):
512 Mb RAM, 1.3 Ghz processor
Bug Description:
java.beans.Introspector.getBeanInfo(class) throws a NullPointerException if a primitive type is passed in.
Steps to Reproduce (be specific):
import java.beans.*;
public class BeanIntroTest
{
public static void main(String[] args) throws Exception
{
BeanInfo beanInfo = Introspector.getBeanInfo(short.class);
System.out.println("Found "+beanInfo.getPropertyDescriptors().length+" properties");
}
}
The above will output "Found 0 properties" in 1.4.2, but will throw a NullPointerException in 1.5.
###@###.### 10/8/04 14:04 GMT
- backported by
-
JDK-2120277 REGRESSION 1.5: Introspector.getBeanInfo throws NPE if a primitive type is pass
- Resolved
- duplicates
-
JDK-5108664 Netbeans installer does not start
- Closed
-
JDK-4960996 [JDK1.5.0] NPE from Introspector.getBeanInfo if there are no properties
- Closed
-
JDK-6180799 Java Bean with zero properties will cause a NullPointerException when getBeanInf
- Closed
- relates to
-
JDK-6582164 JavaBeans tests should be open source
- Resolved