Hi Pavel,

Thank you for your report. The 6423060 CR is already exist:
PIT: java/beans/MetaData/6402062/TestTreePath.java test fails on cinnabar and RHAS3 platforms.
http://bugs.sun.com/view_bug.do?bug_id=6423060

The problem was in the java.beans.ReflectionUtils class, that was refactored in JDK 7 and replaced with the com.sun.beans.finder package. Now the issue can't be reproduced with JDK 7.

Thanks,
SAM

Pavel Tisnovsky wrote:
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