From commits-return-58508-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Thu May 14 21:32:10 2009 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 57030 invoked from network); 14 May 2009 21:32:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 May 2009 21:32:10 -0000 Received: (qmail 51139 invoked by uid 500); 14 May 2009 21:32:10 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 51123 invoked by uid 500); 14 May 2009 21:32:10 -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 51114 invoked by uid 99); 14 May 2009 21:32:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 21:32:09 +0000 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; Thu, 14 May 2009 21:32:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8C74D234C004 for ; Thu, 14 May 2009 14:31:45 -0700 (PDT) Message-ID: <781925632.1242336705573.JavaMail.jira@brutus> Date: Thu, 14 May 2009 14:31:45 -0700 (PDT) From: "Alexei Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-4196) [classlib][luni] InputStreamReader can't handle UnicodeBig encoding In-Reply-To: <33171794.1182051506049.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexei Zakharov reassigned HARMONY-4196: ---------------------------------------- Assignee: (was: Alexei Zakharov) > [classlib][luni] InputStreamReader can't handle UnicodeBig encoding > ------------------------------------------------------------------- > > Key: HARMONY-4196 > URL: https://issues.apache.org/jira/browse/HARMONY-4196 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Vasily Zakharov > Priority: Minor > Attachments: Harmony-4196-InputStreamReader_diagnostics.patch, HARMONY-4196.diff > > > Consider the following simple test: > import java.io.*; > public class Test { > public static void main(String[] args) { > try { > new InputStreamReader(new ByteArrayInputStream(new byte[] {(byte) 0xFE, (byte) 0xFF}), "UnicodeBig"); > System.out.println("SUCCESS"); > } catch (Throwable e) { > System.out.println("FAIL:"); > e.printStackTrace(System.out); > } > } > } > Output on RI: > SUCCESS > Output on Harmony (both DRL VM and IBM VM): > FAIL: > java.io.UnsupportedEncodingException > at java.io.InputStreamReader.(InputStreamReader.java:104) > at Test.main(Test.java:6) > Additional investigation shows that the cause for this exception is: > java.nio.charset.UnsupportedCharsetException: The unsupported charset name is "UnicodeBig". > at java.nio.charset.Charset.forName(Charset.java:564) > at java.io.InputStreamReader.(InputStreamReader.java:99) > at Test.main(Test.java:5) > Interesting point is, the direct call to Charset.forName("UnicodeBig") causes the same exception on RI also. > So it seems the problem is not in Charset but in InputStreamReader itself. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.