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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

// Test for an array assignment bug we've had.
 
public class assign2
{
  public static Object[][] c () { return new Long[5][5]; }
 
  public static Object[] d () { return new Integer[3]; }
 
  public static void main(String[] args)
  {
    try
      {
	Object[][] x = c();
	x[0] = d();
      }
    catch (ArrayStoreException _)
      {
	System.out.println("good");
      }
  }
}
 

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.