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.
For nested elements that were not RE'ed from Java sources (they were created in a Java Platform Model), no code is generated during Generate Code action. The outer class is generated, but inner (nested) classes and enumerations are ignored. - Create Java Platform Model Project - Create Class Diagram - Create a Class and name it Host - Create an Class or Enumeration, name it Nest - Draw a Nested link from Nest element to Host element - Generate Code for Host element [code is generated for Host but no sign of Nest inside of it] - Generate Code specifically for Nest element [no code is generated inside of Host source file]
*** Issue 82248 has been marked as a duplicate of this issue. ***
Inner Interfaces were not being generated either, but they are basically same as Classes. This is now working for multi-level nested elements (class inside an inner class). See attachments for example of innner elements I tested and its generated source code. I'm sure there are some even more goofy edge cases that I haven't tested. If you Generate Code by invoking it on the outermost class element, everything is generated just fine. But if Generate Code is invoked directly on an inner class element, then nothing is generated. This is an issue of a different kind and I have opened a new issue for it: 87474 Just to make sure no regressions for Enumeration code gen, I tested generating code for an Enumeration element that is not an inner element because I had to modify the "add literal" and "add enum" logic a little.
Created attachment 35362 [details] Diagram of my inner elements testing
Created attachment 35363 [details] Generated Code for the Outer element of the attached diagram
verified in all-nbms-griffin-061018_35