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.
The issue is not 100% reproducible. I think the attached IDE log file could help to find the reason of the issue. Steps to reproduce: - Open the attached UML project - Generate Code for the Project - Create a Java Project with Existing Source, and associate it with the generated code - Open 'multiplicity.attribute.A' java class The 'A' java class has non empty body - Select the UML project and invoke 'Generate Code' (Do not close 'A' java class editor) - Try to generate code some times. The generated 'A' java class body is empty Here is an exception in the IDE log file: ---------------------------------------------------------------------------- java.lang.Exception: rollback!!! modules.javacore.ExclusiveMutex.leave(ExclusiveMutex.java:339) mdr.NBMDRepositoryImpl.endTrans(NBMDRepositoryImpl.java:249) mdr.handlers.BaseObjectHandler._unlock(BaseObjectHandler.java:227) mdr.handlers.ClassProxyHandler._postCreate(ClassProxyHandler.java:101) jmi.javamodel.FieldClass$Impl.createField(Unknown Source) ... -----------------------------------------------------------------------------
Created attachment 36451 [details] CodeGenerationProject-Model UML project
Created attachment 36452 [details] IDE log file
I'm getting a different exception: [org.netbeans.javacore] INFORMATIONAL *********** Exception occurred *********** * at 11:18 AM on Dec 4, 2006 java.lang.Exception: Class not found in index: elements.templateclass.TemplateClass1. Recovering... And the class has all it's proper code generated except that two methods are generated more than once. It's as if the original sources are not being completely deleted. More details on above to be logged when I do more testing and research.
low use case not currently impacting our installed user base.
new code gen module; problem no longer exists