This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Adding the ScrollPane into the form fires exception | ||
---|---|---|---|
Product: | guibuilder | Reporter: | Jaromir Uhrik <juhrik> |
Component: | Code | Assignee: | Tomas Pavek <tpavek> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | Keywords: | JDK_SPECIFIC |
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows ME/2000 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | patch for NB 3.5.x |
Description
Jaromir Uhrik
2003-04-25 14:18:59 UTC
Will check the difference between jdk 1.4.2 and 1.4.1. *** Issue 35093 has been marked as a duplicate of this issue. *** *** Issue 35082 has been marked as a duplicate of this issue. *** Basically caused indirectly by fix of 4810551 in JDK 1.4.2. java.beans.Introspector now checks whether BeanInfo class found on search path belongs to the bean class whose BeanInfo is searched for. Unfortunately, this check does not pass if the BeanInfo does not provide any descriptors (BeanDescriptor, PropertyDescriptor, etc) that could be used for checking. That's also the case of ScrollPaneBeanInfo provided by form module - Introspector is not sure if it really belongs to java.awt.ScrollPane so it is refused and uses reflection to scan ScrollPane class. This way it recognizes also get/setScrollPosition as property - which cannot be used as property because the getter behaves incorrectly (for property getter) - throws NPE if no component is in the scroll pane. Fixed in dev trunk. Added BeanDescriptor to all BeanInfo classes. Applied also to prj40_prototype branch. Created attachment 11843 [details]
patch for NB 3.5.x
To use the patch, create org-netbeans-modules-form directory in your $nb_install$/modules/patches and place the patch jar file in there. Verified in both: -3.5 with the patch -NetBeansIDE-dev-200310140100 |