<Swing Dev> The method XMLEncoder.writeObject(TreePath) goes into infinite recursion

Sergey Malenkov Sergey.Malenkov at Sun.COM
Tue Oct 27 09:57:47 UTC 2009


Hi Pavel,

Now I have no plan to fix the 6423060 CR in JDK 6, but it is possible
to find and backport needed files from the finder package.
Do you mean Open JDK 6 or JDK 6 Update Release?

Thanks,
SAM

Pavel Tisnovsky wrote:
> Hi Sergey,
> 
> first I want to thank you for your answer. Does it mean, that this bug 
> won't be repaired in JDK 6 or is it possible to put new/refactored code 
> (finder package mentioned) to JDK 6 too?
> 
> Pavel
> 
> Sergey Malenkov wrote:
>> 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
>>
> 




More information about the swing-dev mailing list