ADDITIONAL SYSTEM INFORMATION :
Windows 11, using NetBeans, JDK 19
A DESCRIPTION OF THE PROBLEM :
Please refer to https://github.com/apache/netbeans/issues/5774 for the original post, where I was advised to report this against OpenJDK
Attachments can be found in the above GitHub issue.
When creating a BeanInfo using netbeans, in the getBdescriptor() method, we can set the value "containerDelegate" using the following line of code to delegate to another container.
beanDescriptor.setValue("containerDelegate", "getInnerPanel");
These examples work with all previous JDK versions, except for JDK 19
I also tested JDK 13, 14, 15, 16, 17 and 18 and they all work fine.
REGRESSION : Last worked in version 17.0.6
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Having NetBeans installed, any version, 17 as reference.
Using the Dummy Projects ( From GitHub issue mentioned above)
With any new JPanel, or using MainPanel:
Drag or add a SectionPanel instance to MainPanel
Then add any other widget (i.e. JLabel) from the palette in the SectionPanel instance
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
SectionPanel should be recognized as a Container, therefore the widget should get added into the SectionPanel instance
ACTUAL -
SectionPanel is not recognized as a Container, and no other widget can be added to it when using the widgets palette in NetBeans
---------- BEGIN SOURCE ----------
Attached to https://github.com/apache/netbeans/issues/5774
---------- END SOURCE ----------
FREQUENCY : always