Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 72023 invoked from network); 23 Jun 2008 12:47:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jun 2008 12:47:06 -0000 Received: (qmail 90401 invoked by uid 500); 23 Jun 2008 12:47:08 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 90385 invoked by uid 500); 23 Jun 2008 12:47:07 -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 90372 invoked by uid 99); 23 Jun 2008 12:47:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 05:47:07 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 12:46:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 499E2234C14B for ; Mon, 23 Jun 2008 05:46:45 -0700 (PDT) Message-ID: <522601273.1214225205300.JavaMail.jira@brutus> Date: Mon, 23 Jun 2008 05:46:45 -0700 (PDT) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-1568) [classlib][beans] XMLDecoder(3 params).getExceptionListener() returns object on RI and 'null' on Harmony MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison closed HARMONY-1568. -------------------------------- > [classlib][beans] XMLDecoder(3 params).getExceptionListener() returns object on RI and 'null' on Harmony > -------------------------------------------------------------------------------------------------------- > > Key: HARMONY-1568 > URL: https://issues.apache.org/jira/browse/HARMONY-1568 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Vladimir Ivanov > Assignee: Tim Ellison > Attachments: beans.patch, HY-1568.diff > > > The spec says for the constructor XMLDecoder(InputStream in, Object owner, ExceptionListener exceptionListener): > "exceptionListener - the exception handler for the stream; if null the default exception listener will be used" > The RI use default listener while harmony 'null'. > ============== test.java ==================== > import java.beans.*; > import java.io.ByteArrayInputStream; > public class test { > public static void main(String[] args) { > System.out.println("res = " + new XMLDecoder(new ByteArrayInputStream(new byte[] {1, 2}), new Double(1), null).getExceptionListener()); > } > } > ========================================= > Output: > C:\tmp\tmp17>C:\jrockit-jdk1.5.0-windows-ia32\bin\java.exe -cp . -showversion test > java version "1.5.0" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) > BEA WebLogic JRockit(R) (build dra-38972-20041208-2001-win-ia32, R25.0.0-75, GC: System optimized over throughput (initial strategy singleparpar)) > res = java.beans.Statement$1@1b3534 > C:\tmp\tmp17>C:\harmony\classlib1.5\deploy\jdk\jre\bin\java.exe -cp . test > res = null -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.