-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
5.0
-
None
-
x86
-
windows_2000
Introspector.getBeanInfo fails on beans returning empty array of PropertyDescriptor in their BeanInfo.
at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:593)
at java.beans.Introspector.getBeanInfo(Introspector.java:382)
at java.beans.Introspector.getBeanInfo(Introspector.java:152)
...
Observed in tiger build 29. The cause seems to be that Introspector.properties map is now created in processPropertyDescriptors() method (was created automatically with the class in jdk 1.4.x), but only if there were some properties found - if it does not happen, processPropertyDescriptors() returns immediately as pdStore is null (pdStore is created if addPropertyDescriptor() is called at least once).
You may test this e.g. in current NetBeans dev builds, creating a new form and setting e.g. BoxLayout (it has no properties).
###@###.### 2003-11-28
at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:593)
at java.beans.Introspector.getBeanInfo(Introspector.java:382)
at java.beans.Introspector.getBeanInfo(Introspector.java:152)
...
Observed in tiger build 29. The cause seems to be that Introspector.properties map is now created in processPropertyDescriptors() method (was created automatically with the class in jdk 1.4.x), but only if there were some properties found - if it does not happen, processPropertyDescriptors() returns immediately as pdStore is null (pdStore is created if addPropertyDescriptor() is called at least once).
You may test this e.g. in current NetBeans dev builds, creating a new form and setting e.g. BoxLayout (it has no properties).
###@###.### 2003-11-28
- duplicates
-
JDK-4960998 [JDK1.5.0] NPE from Introspector.getBeanInfo if there are no properties
-
- Closed
-
-
JDK-4948761 REGRESSION 1.5: Introspector.getBeanInfo throws NPE if a primitive type is pass
-
- Resolved
-