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.
Steps to reproduce: - Reverse Engineer the attached 'MyFrame' java class into UML project - Generate code for the UML project - Go to the generated java project The project contains mistakenly generated 'ActionListener' interface under 'java.awt.event' package -------------------------------------------------------------- package java.awt.event; public interface ActionListener { } --------------------------------------------------------------
Created attachment 35766 [details] 'MyFrame' java class
low use case not currently impacting our installed user base.
new code gen module; problem no longer exists
The problem still exists in netbeans-hudson-trunk-1189-full.zip Just follow the described steps.
I see now. This is really a RE problem. The Code Gen process sees an Action interface in the project and generates code for it. The RE process should have created an interface datatype instead, and the Code Gen process would/should ignore it. Changing subcomponent to reverse engineering.
Reworded Summary to indicate issue is in RE process, not CG process.
Proper solution requires correct resolution of types, i.e. javac parsing. In the short term, we map the type to datatype. Datatypes behave more like class than interface types. We don't have a good solution in the current framework. Users should avoid code generation on java packages in the mean time.
Reviewed and approved for waiver by UML -iteam.
still exists in 6.5
Removing obsolete assignments. Bugs will be reassigned for M2.
currently there are two solutions to handle this case, user can easily remove extra generated code, or generate code only on specific packages in uml project.