Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 20780 invoked from network); 10 Oct 2006 01:49:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2006 01:49:01 -0000 Received: (qmail 29136 invoked by uid 500); 10 Oct 2006 01:49:01 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 29105 invoked by uid 500); 10 Oct 2006 01:49:01 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 29094 invoked by uid 99); 10 Oct 2006 01:49:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 18:49:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 18:48:58 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AB86F7142D8 for ; Mon, 9 Oct 2006 18:48:20 -0700 (PDT) Message-ID: <23355009.1160444900699.JavaMail.root@brutus> Date: Mon, 9 Oct 2006 18:48:20 -0700 (PDT) From: "Nathan Beyer (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Assigned: (HARMONY-32) java.text.Collator.setDecomposition(FULL_DECOMPOSITION) throws IllegalArgumentException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-32?page=all ] Nathan Beyer reassigned HARMONY-32: ----------------------------------- Assignee: Nathan Beyer > java.text.Collator.setDecomposition(FULL_DECOMPOSITION) throws IllegalArgumentException > ---------------------------------------------------------------------------------------- > > Key: HARMONY-32 > URL: http://issues.apache.org/jira/browse/HARMONY-32 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: tatyana doubtsova > Assigned To: Nathan Beyer > > Code for reproducing Test.java: > import java.text.Collator; > import java.util.Locale; > public class Test { > public static void main (String[] args) { > Collator c = Collator.getInstance(Locale.US); > c.setDecomposition(Collator.FULL_DECOMPOSITION); > int decompositionMode = c.getDecomposition(); > System.out.println("decomposition Mode is " + decompositionMode); > } > } > Steps to Reproduce: > 1. Build Harmony-14 j2se subset as described in README.txt. > 2. Compile Test.java using BEA 1.4 javac > > javac -d . Test.java > 2. Run java using compatible VM (J9) > > java -showversion Test > > Output: > java version 1.4.2 (subset) > (c) Copyright 1991, 2005 The Apache Software Foundation or its licensors, as applicable. > Exception in thread "main" java.lang.IllegalArgumentException: Wrong decomposition mode. > at com.ibm.icu.text.Collator.setDecomposition(Collator.java:295) > at java.text.Collator.setDecomposition(Collator.java:277) > at Test.main(Test.java:7) > Output on BEA 1.4.2: > decomposition Mode is 2 > Suggested junit test case: > package org.apache.harmony.tests.java.text; > import java.text.Collator; > import java.util.Locale; > import junit.framework.TestCase; > public class CollatorTest extends TestCase { > public static void main(String[] args) { > junit.textui.TestRunner.run(CollatorTest.class); > } > > public void test_setDecomposition() { > Collator c = Collator.getInstance(Locale.US); > try { > c.setDecomposition(Collator.FULL_DECOMPOSITION); > } catch (Exception e) { > fail("Assert 0: Unexpected exception " + e); > } > int decompositionMode = c.getDecomposition(); > assertTrue("Assert 1: next() returns incorrect value " + decompositionMode, decompositionMode == Collator.FULL_DECOMPOSITION ); > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira