ivoa / vo-dml

VO-DML tooling and documents.
Creative Commons Attribution Share Alike 4.0 International
1 stars 1 forks source link

copy constructor not dealing with contained references properly. #42

Open pahjbo opened 5 months ago

pahjbo commented 5 months ago

Copy constructors are not copying references by design - however, in the case of contained references it might be appropriate to copy references. This is complicated by the fact that whether the copy is appropriate depends on where the original copy started.

pahjbo commented 5 months ago

see also #41 where the rules for "contained" references need to be defined.

pahjbo commented 4 months ago

think that release 0.4.4 contains a fix for this - however keeping issue open as might change the API depending on experience of use.

model.createContext();
ATest atestprime = new ATest(atest);
atestprime.updateClonedReferences();