Bugzilla – Full Text Bug Listing |
Summary: | Config::Set/Connect does not search for attributes in parent classes | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Alex Afanasyev <alexander.afanasyev> |
Component: | core | Assignee: | Mathieu Lacage <mathieu.lacage> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | donutcop, ns-bugs, pdbarnes, tomh, tommaso.pecorella |
Priority: | P5 | ||
Version: | ns-3-dev | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://www.nsnam.org/bugzilla/show_bug.cgi?id=1959 | ||
Attachments: | Config::DoResolve patch |
This patch seems useful. Can we check its correctness with some tests and, in case, apply it ? Either, is there a reason to not wanting this enhancement ? pushed in 10940:e51c1aaac703, thanks for the patch! |
Created attachment 1590 [details] Config::DoResolve patch The attached patch addresses an issue with Config::Set/Connect methods. Just an example of what is/was the issue. Let's say I have class A with attribute 'X' and class B that is derived from class A. Let also assume that object of class B is aggregated to a Node with id 0. Config::Set ("/NodeList/0/$B/X", StringValue ('some-value')); While such a code is totally legitimate, Config::DoResolve didn't properly resolve the attribute path in parent's classes.