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

Subversion Repositories openrisc

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

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

// Test to make sure JNI implementation catches exceptions.
 
public class noclass
{
  static
  {
    System.loadLibrary ("noclass");
  }
 
  public static native void find_it ();
 
  public static void main (String[] args)
  {
    try
      {
	find_it ();
      }
    catch (Throwable _)
      {
	// If find_it() causes a crash, or doesn't throw an exception,
	// we won't be running this next line.
	System.out.println ("Ok");
      }
  }
}
 

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.