Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 30917 invoked from network); 22 Dec 2009 08:08:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Dec 2009 08:08:58 -0000 Received: (qmail 85754 invoked by uid 500); 22 Dec 2009 08:08:58 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 85722 invoked by uid 500); 22 Dec 2009 08:08:57 -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 85713 invoked by uid 99); 22 Dec 2009 08:08:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2009 08:08:57 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Tue, 22 Dec 2009 08:08:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CAF74234C045 for ; Tue, 22 Dec 2009 00:08:30 -0800 (PST) Message-ID: <847841485.1261469310809.JavaMail.jira@brutus> Date: Tue, 22 Dec 2009 08:08:30 +0000 (UTC) From: "Ray Chen (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6408) [classlib][luni]OutputStreamWriterTest got java.nio.BufferOverflowException In-Reply-To: <1892694121.1261364778154.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HARMONY-6408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ray Chen updated HARMONY-6408: ------------------------------ Patch Info: [Patch Available] > [classlib][luni]OutputStreamWriterTest got java.nio.BufferOverflowException > --------------------------------------------------------------------------- > > Key: HARMONY-6408 > URL: https://issues.apache.org/jira/browse/HARMONY-6408 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Ray Chen > Attachments: Harmony-6408.diff > > > Following is the exception trace: > java.nio.BufferOverflowException > java.nio.charset.CoderMalfunctionError: java.nio.BufferOverflowException > at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:450) > at java.io.OutputStreamWriter.convert(OutputStreamWriter.java:237) > at java.io.OutputStreamWriter.write(OutputStreamWriter.java:232) > at java.io.Writer.write(Writer.java:98) > at org.apache.harmony.luni.tests.java.io.OutputStreamWriterTest.testHandleEarlyEOFChar_1(OutputStreamWriterTest.java:416) > at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) > Caused by: java.nio.BufferOverflowException > at java.nio.ReadWriteHeapByteBuffer.put(ReadWriteHeapByteBuffer.java:97) > at org.apache.harmony.niochar.charset.additional.GB2312$Encoder.encodeLoop(GB2312.java:297) > at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:448) > at java.io.OutputStreamWriter.convert(OutputStreamWriter.java:237) > In OutputStreamWriter's constructor using the default character encoding, on my machine, it is GB2312. > If I set the encoder to "ISO8859_1" the test passed. > So I think most of the members from China will got this error. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.