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

Subversion Repositories openrisc

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

Go to most recent revision | Compare with Previous | Blame | View Log

public class ArrayStore2
{
  public static void main(String[] args)
  {
    new ArrayStore2().a(new Object[2], 3);
  }
 
  void a(Object[] oa, int i)
  {
    try
    {
      oa[index()] = obj();
    }
    catch (Exception x)
    {
      System.out.println (x.getClass().getName());
    }
  }
 
  int index()
  {
    System.out.println ("index");
    return 3;
  }
 
  Object obj()
  {
    System.out.println ("rhs");
    return new Object();
  }
}
 

Go to most recent revision | 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.