Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.1-core
-
None
Description
UIXComponent has methods:
setupVisitingContext
setupChildrenEncodingContext
setupEncodingContext
setupChildrenVisitingContext
and the corresponding tear down methods. The problem is that there is no code that validates that these methods have not been called more than once at a time. For example, if a component overrides the setupChildrenEncodingContext with code, and that method is called more than once, it may cause issues. By adding boolean flags and simple checks with warnings to the LOG it would be much easier for component authors to determine where the issue is instead of just allowing, silently, the excessive calls to be made.