Hi,

the method XMLEncoder.writeObject() goes into infinite recursion, when object to be marshalled is of type TreePath. This bug (which causes StackOverflowException, of course) occurs in Sun JDK (6) as well in OpenJDK6.

Tested on: OpenJDK6 and IcedTead6-1.6 @ Fedora 10 (i386) and RHEL 5.3 (x86_64)

This bug also causes failures of regression test /java/beans/XMLEncoder/javax_swing_tree_TreePath.java
(at least on systems mentioned above).

Very simple application, which fails after calling XMLEncoder.writeObject(TreePath) can be downloaded from
https://bugs.openjdk.java.net/attachment.cgi?id=152

However I don't have patch for this bug (at least yet) and I'm not sure, if I have to report this issue on http://bugs.sun.com or if somebody already working on this bug. Have you got any suggestions?

Pavel Tisnovsky

Reply via email to