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.

Bug 152284 - Code generation fails to find code template when a robustness stereotype is applied to it
Summary: Code generation fails to find code template when a robustness stereotype is a...
Status: RESOLVED DUPLICATE of bug 128740
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-04 10:37 UTC by zolta
Modified: 2008-11-05 06:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zolta 2008-11-04 10:37:21 UTC
How to reproduce:
Programmer (P) is working on a JavaPlatform Model Project (JPMP) with an attached Target java application project (TJAP)
Both the JPMP and TJAP is empty

P creates a new Class Diagram in  JPMP on the  Class Diagram P creates new something -I assume classes-  from one of the
Robustness Palette tools (bondary,controller,entity ) 


Everything seems to be fine 
NB Creates the classes with the appropriate stereotype
makes the Show as Iconic - Show  as noniconic commands available in the Class's context menu.

P has ABoundaryClass,AControllerClass,AnEntityClass
Here comes the defect

P runs the code generation for JPMP
Task Fails with errors

Processing element 1 of 1: Class ABoundaryClass ... ERROR: No templates defined for the element
Processing element 2 of 2: Class AControlerClass ... ERROR: No templates defined for the element
Processing element 3 of 3: Class AnEntityClass ... ERROR: No templates defined for the element


ok try to find a work around

 ABoundaryClass,AControllerClass,AnEntityClass are in Iconic state 
P deletes he stereotypes 
The box around the Class's title disappears
can be reset by deleting and adding again to the diagramm


P runs code generation for JPMP now ABoundaryClass,AControllerClass,AnEntityClass are without stereotypes

good so far

P runs reverse engineer... for the TJAP
that Finshes without error 

P adds the stereotypes to the ABoundaryClass,AControllClass,AnEntityClass classes
wow P has the showas iconic/showas noniconic feature
code generation again 
error again
Processing element 1 of 1: Class ABoundaryClass ... ERROR: No templates defined for the element
Processing element 2 of 2: Class AControlerClass ... ERROR: No templates defined for the element
Processing element 3 of 3: Class AnEntityClass ... ERROR: No templates defined for the element


I bet adding a Robustness stereotype to a class shouldn't ruin code generation process 
Thanks,
Comment 1 Sergey Petrov 2008-11-05 06:28:25 UTC
you may need to try to create new code generation template for not standard classes.
feel free to reopen the issue if it will fails with additional details.
see issue 128740.

*** This issue has been marked as a duplicate of 128740 ***