Bug 467924 - [codegen] Code generator not generating nested types
Summary: [codegen] Code generator not generating nested types
Status: NEW
Alias: None
Product: Papyrus-rt
Classification: Modeling
Component: codegen (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal
Target Milestone: 1.1.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-21 17:04 EDT by Ernesto Posse CLA
Modified: 2016-11-07 07:44 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ernesto Posse CLA 2015-05-21 17:04:51 EDT
If a capsule or class has an attribute with type T, where T is a user-defined class or struct which is not defined inside a package (or at the top-level) but defined nested inside a classifier, then the code generator will ignore it. The same is true for the types of operation parameters for classes and capsules.
Comment 1 Simon Redding CLA 2016-02-05 16:28:40 EST
Does not gate the June release 1.0 Papyrus-RT release
Comment 2 Charles Rivet CLA 2016-10-31 11:43:42 EDT
Need to determine impact on migration of legacy models.
Additional feature that can not be handled in a service release.
Moving to 1.1.0
Comment 3 Ernesto Posse CLA 2016-10-31 11:50:21 EDT
Are nested classifiers allowed in RSA-RTE?
Comment 4 Charles Rivet CLA 2016-11-01 15:20:17 EDT
(In reply to Ernesto Posse from comment #3)
> Are nested classifiers allowed in RSA-RTE?

Peter: Could you please check into this?
Comment 5 Peter Cigehn CLA 2016-11-07 07:44:03 EST
(In reply to Charles Rivet from comment #4)
> (In reply to Ernesto Posse from comment #3)
> > Are nested classifiers allowed in RSA-RTE?
> 
> Peter: Could you please check into this?

Yes, the legacy code-generator supports nested classes. I would expect Papyrus-RT to suppor that as well. Just consider the fact that we already have the tooling in place on the UML-RT new child menu for creating nested classes and enumerations within capsules and classes.