Martijn Dashorst wrote:
I just had a small idea, to regain the line precise error message when
we construct the component tree we lost in the constructor change
removal.

Why don't we record the stack trace in Component#Component() if we are
in development mode, and put it in the meta data or in a temporary
store in the request cycle?

This way if something goes wrong during construction, we can display
the component that is in violation and show the exact line number
where the component is constructed.

Something similar can be done with the 'add' method.

Yes! That sounds like an excellent idea. :-)
+1

Alastair

Reply via email to