harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5707) [classlib][beans] dead loop in Encoder
Date Wed, 09 Apr 2008 15:26:24 GMT
[classlib][beans] dead loop in Encoder

                 Key: HARMONY-5707
                 URL: https://issues.apache.org/jira/browse/HARMONY-5707
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: all
            Reporter: Alexei Zakharov

The current implementation of Encoder/XMLEncoder/PersistentDelegate/DefaultPersistentDelegate
runs into a dead loop while trying to encode bean like this:

package test;

import java.beans.*;

public class DeadLoopTest {
    public DeadLoopTest getProp1() {
        return new DeadLoopTest();

    public void setProp1(DeadLoopTest val) {}

    public static void main(String argv[]) {
        XMLEncoder encoder = new XMLEncoder(System.out);
        DeadLoopTest bean1 = new DeadLoopTest();


Please note that several classes from Harmony's AWT implementation contain patterns that are
very close to this. For example Component.getLocation()/setLocation(), Component.getSize()/setSize().

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message