bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/28984] New: java.io.InputStreamReader.read(char[], int,


From: jeroen at frijters dot net
Subject: [Bug classpath/28984] New: java.io.InputStreamReader.read(char[], int, int) broken
Date: 8 Sep 2006 15:32:06 -0000

The following code incorrectly throws an IndexOutOfBoundsException:

import java.io.*;

public class test
{
  public static void main(String[] arg) throws Exception
  {
    InputStreamReader rdr = new InputStreamReader(new ByteArrayInputStream(new
byte[128]), "utf-8");
    char[] buf = new char[128];
    rdr.read(buf, 0, 32);
    rdr.read(buf, 0, 2);
  }
}


-- 
           Summary: java.io.InputStreamReader.read(char[],int,int) broken
           Product: classpath
           Version: 0.93
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jeroen at frijters dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28984





reply via email to

[Prev in Thread] Current Thread [Next in Thread]