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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [throwit.java] - Rev 817

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

// Test to see if throw works.
 
public class throwit
{
  static
  {
    System.loadLibrary ("throwit");
  }
 
  public static native void throwit (String name, boolean is_new);
 
  public static void main (String[] args)
  {
    try
      {
	throwit ("java/lang/UnknownError", false);
      }
    catch (Throwable x)
      {
	System.out.println (x.getClass ());
	System.out.println (x.getMessage ());
      }
    try
      {
	throwit ("java/lang/Throwable", true);
      }
    catch (Throwable x)
      {
	System.out.println (x.getClass ());
	System.out.println (x.getMessage ());
      }
  }
}
 

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.