1 Reply Latest reply on Mar 20, 2007 11:21 AM by christian.bauer

    TreeDataModel bug

      It seems there is a bub in TreeDataModel class in walk() function.
      I have a ClassCastException in string:

      Map.Entry childEntry = children.hasNext() ? (Map.Entry) children.next() : null;


      I use my own implementation of TreeNode interface and children are not in Map class. To tell the truth I don't understand why it must be a Map. I think it is not necessary.

      If it is necessary developers should write it in documentation, I think.