Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 23398 invoked from network); 3 Jan 2008 12:49:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2008 12:49:59 -0000 Received: (qmail 15723 invoked by uid 500); 3 Jan 2008 12:49:48 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 15703 invoked by uid 500); 3 Jan 2008 12:49:48 -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 15674 invoked by uid 99); 3 Jan 2008 12:49:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2008 04:49:47 -0800 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; Thu, 03 Jan 2008 12:49:43 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7C65E714211 for ; Thu, 3 Jan 2008 04:49:35 -0800 (PST) Message-ID: <17784256.1199364575505.JavaMail.jira@brutus> Date: Thu, 3 Jan 2008 04:49:35 -0800 (PST) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-1002) [classlib][text] unexpected IllegalArgumentException for java.text.MessageFormat("{{") 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-1002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison closed HARMONY-1002. -------------------------------- > [classlib][text] unexpected IllegalArgumentException for java.text.MessageFormat("{{") > -------------------------------------------------------------------------------------- > > Key: HARMONY-1002 > URL: https://issues.apache.org/jira/browse/HARMONY-1002 > Project: Harmony > Issue Type: Bug > Components: Non-bug differences from RI > Reporter: Vladimir Ivanov > Assignee: Tim Ellison > Attachments: MessageFormatTest.patch > > > The Harmony constructor java.text.MessageFormat("{{") throws IllegalArgumentException while RI creates object. > ============== test.java ==================== > import java.text.*; > public class test { > public static void main (String[] args) { > System.out.println("res = " + new MessageFormat("{{")); > } > } > ========================================= > 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.text.MessageFormat@0 > C:\tmp\tmp17>C:\harmony\trunk_0427\deploy\jdk\jre\bin\java.exe -cp . -showversion test > java version 1.5 (subset) > (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. > Exception in thread "main" java.lang.IllegalArgumentException: Invalid argument number > at java.text.MessageFormat.applyPattern(MessageFormat.java:109) > at java.text.MessageFormat.(MessageFormat.java:81) > at test.main(test.java:5) > C:\tmp\tmp17>C:\harmony\drlvm\trunk\build\win_ia32_msvc_debug\deploy\jre\bin\java -Dvm.assert_dialog=false -cp . -showversion test > java version "1.5.0" > pre-alpha : not complete or compatible > svn = r425618, (Jul 28 2006), Windows/ia32/msvc 1310, debug build > http://incubator.apache.org/harmony > java.lang.IllegalArgumentException: Invalid argument number > at java.text.MessageFormat.applyPattern(MessageFormat.java:109) > at java.text.MessageFormat.(MessageFormat.java:81) > at test.main(test.java:5) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.