rapastranac opened a new issue, #5774:
URL: https://github.com/apache/netbeans/issues/5774

   ### Apache NetBeans version
   
   Apache NetBeans 17
   
   ### What happened
   
   Please find attached two minimum reproducible examples. One uses **maven** 
and the other one uses **ant**.
   
   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.
   
   ```java
   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.
   
   
   
[DummyAnt.zip](https://github.com/apache/netbeans/files/11152746/DummyAnt.zip)
   
[DummyMaven.zip](https://github.com/apache/netbeans/files/11152747/DummyMaven.zip)
   
   
   
   ### How to reproduce
   
   Using the Dummy Projects.
   
   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
   
   SectionPanel should be recognized as a Container, therefore the widget 
should get added into the SectionPanel instance
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 16
   
   ### Operating System
   
   Windows 11
   
   ### JDK
   
   19.0.2
   
   ### Apache NetBeans packaging
   
   Apache NetBeans platform
   
   ### Anything else
   
   - This problem occurs all the time under the aforementioned description
   
     - **Here's a screenshot of how this example should look**
   
       
![image](https://user-images.githubusercontent.com/12089476/229913619-7e4de74c-394c-4293-a2e0-2ea9ddd3560a.png)
   
     - And here's the Navigator screenshot showing that it works as expected
   
       
![image](https://user-images.githubusercontent.com/12089476/229913853-dc41aa6d-1a03-47a0-b2d4-1e73e4476fff.png)
   
   - **Here's a screenshot after attempting to perform the same steps using 
JDK19**
       
![image](https://user-images.githubusercontent.com/12089476/229914445-f859e876-99b9-44ce-a083-870e21997b3d.png)
   
   - Here's the Navigator screenshot showing that a widget cannot be added to 
the SectionPanel instance
       
![image](https://user-images.githubusercontent.com/12089476/229914830-84fde374-0b47-4c1f-8709-dd31ace8e812.png)
   
   
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to