Opened 10 months ago

Last modified 5 months ago

#5726 assigned defect

Orginal Annotations should be preserved when classes are redeclared unless new annotations are added in the redeclaring declaration

Reported by: mjohnsson Owned by: mjohnsson
Priority: major Milestone:
Component: Modelica/FrontEnd Version: trunk
Keywords: Cc:

Description

Orginal Annotations should be preserved when classes are redeclared unless new annotations are added in the redeclaring declaration.

package P
end P;

model A
replaceable package P1 = P annotation(a="abc");
end A;

model B
extends A;
end B;

model C
extends A(redeclare replaceable package P1 = P); <- should have annotation
end C

Change History (5)

comment:1 Changed 10 months ago by mjohnsson

r12252 Create a dev branch
r12288 Fixing file formatting removing lots of tabs.
r12296 Adding all the inheritance tests.
r12297 Working solution
r12298 Merge from trunk
r12303 Clean up
r12304 Move 5 needed methods for types of Modification in order to resolve from environment
r12305 Changelog
r12311 Merge to trunk

comment:2 Changed 9 months ago by amartensen

r12329 merge r12311 to branches/2.8.x

Last edited 9 months ago by amartensen (previous) (diff)

comment:3 Changed 9 months ago by amartensen

r12341 reverse-merged r12311 r12306 to branches/2.8.x
r12342 merged r12306 r12311 to branches/2.8.x

comment:4 Changed 9 months ago by mjohnsson

r12403 Restored the functionality for all but functions.

comment:5 Changed 5 months ago by tgutzmann

Last edited 5 months ago by tgutzmann (previous) (diff)
Note: See TracTickets for help on using tickets.