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.
Beta 1 200709060000 I try to create a simple case but was unable to replicate the issue. So I've attached the project which consists a complex class diagram. After code gen, there is an error generated in the java source for the generated line "import gui.void" . Please look for the red dot while expanding the java project after CG.
Created attachment 48334 [details] project tarfile attached
This is likely a RE problem, the attached model is wrong with primitive element (void, int etc) created under named name space. The generated code seems to correctly reflect the model. Please test RE part to identify the source issue. Can you reproduce it with latest trunk?
the bug was filed with purpose that the codegen part to be corrected to not generate incorrect code even if the user explicitly put "void", "int" datatypes into a package.
Change bug status per Viktor's comments. This issue is reproducible in the Beta 1 builds.
Still exists in 6.5
in my opinion if model allow to put void in package code gen should generate it this way, but may be in java project there should be restriction on drag/create primitive or reserved types inside any package except root one. but this looks more like enhancemnt if we consider rules checking as an option. but if RE put void/int etc into package it's a real issue, but should be filed separately.