Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ufk-dev] ObservableTreeNode illegal state

Hi Tom!

I believe there is a state problem in the ObservableTreeNode class.
Methods getAllowsChildren() and getChildCount() do check for
uninitialized nodeList field.
Methods getChildAt() or getIndex() on the other hand dont.

As I understand JTree never calls these methods before calling one of
the initializing methods.
But TreeModel does not enforce this contract.
Isn't this a problem?

Thank you!

  Max

P.S. By the way, the branch nodeList == null in
getAllowsChildren()/getChildCount() is never executed, nodeList at
that point it is always not null.


Back to the top