Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 20072 invoked from network); 4 Jul 2007 03:09:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2007 03:09:26 -0000 Received: (qmail 62110 invoked by uid 500); 4 Jul 2007 03:09:28 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 62094 invoked by uid 500); 4 Jul 2007 03:09:28 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 62085 invoked by uid 99); 4 Jul 2007 03:09:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 20:09:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 20:09:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D7CA87141F1 for ; Tue, 3 Jul 2007 20:09:04 -0700 (PDT) Message-ID: <14572912.1183518544880.JavaMail.jira@brutus> Date: Tue, 3 Jul 2007 20:09:04 -0700 (PDT) From: "spark shen (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-4327) [classlib][java6][beans] Current java6 bean implementation does not persist Collection and its subclasses correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [classlib][java6][beans] Current java6 bean implementation does not persist Collection and its subclasses correctly ------------------------------------------------------------------------------------------------------------------- Key: HARMONY-4327 URL: https://issues.apache.org/jira/browse/HARMONY-4327 Project: Harmony Issue Type: Bug Components: Classlib Reporter: spark shen The following test case will pass on RI6, but will fail on harmony branch java6. public void test_writeObject_java_util_Collection() { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream( byteArrayOutputStream)); LinkedList list = new LinkedList(); list.add(10); list.addFirst(2); encoder.writeObject(list); encoder.close(); DataInputStream stream = new DataInputStream(new ByteArrayInputStream( byteArrayOutputStream.toByteArray())); XMLDecoder decoder = new XMLDecoder(stream); LinkedList l = (LinkedList) decoder.readObject(); assertEquals(list, l); } Harmony-branch-java6: expected:<[2, 10]> but was:<[]> RI: pass -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.