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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.jni/] [noclass.java] - Blame information for rev 765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// Test to make sure JNI implementation catches exceptions.
2
 
3
public class noclass
4
{
5
  static
6
  {
7
    System.loadLibrary ("noclass");
8
  }
9
 
10
  public static native void find_it ();
11
 
12
  public static void main (String[] args)
13
  {
14
    try
15
      {
16
        find_it ();
17
      }
18
    catch (Throwable _)
19
      {
20
        // If find_it() causes a crash, or doesn't throw an exception,
21
        // we won't be running this next line.
22
        System.out.println ("Ok");
23
      }
24
  }
25
}

powered by: WebSVN 2.1.0

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