CDV ❯ Add a warning for rejected root assignment?
-
Bug
-
Status: Resolved
-
2 Major
-
Resolution: Won't Fix
-
DSO:L1
-
-
interfaces
-
Reporter: amiller
-
November 12, 2008
-
0
-
Watchers: 1
-
February 12, 2014
-
February 12, 2014
Description
Right now if you assign to an already assigned non-literal tc root, the assignment will silently fail. Sometimes this is actually a programming bug when not being aware of tc. Maybe we emit a warning to the tc log in this case? Might be a useful clue. Or have a runtime logging option for it?
Comments
Taylor Gautier 2008-11-12
Taylor Gautier 2008-11-12
Maybe this could happen once per class not per instance.
Hung Huynh 2014-02-12
DSO is discontinued
I think an INFO would be appropriate here - not a WARN. There are certainly cases where this is intentional - in fact it can be quite common. I think in high object creation count (where the assignment is likely) it could be detrimental to have this on - so I might even argue it’s a DEBUG level.