OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [PR36252.java] - Rev 765

Compare with Previous | Blame | View Log

import java.io.UnsupportedEncodingException;
 
public class PR36252
{
  public static void main(String[] args)
  {
    try {
      byte[] txt = new byte[] {-55, 87, -55, -42, -55, -20};
      // This new String(...) should not throw an OutOfMemoryError.
      String s = new String(txt, 0, 6, "MS932");
    } catch (UnsupportedEncodingException e) {
      // Silently ignore.
    }
    System.out.println("ok");
  }
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.