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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 765 jeremybenn
// Regression test for JNI and static initializers.
2
 
3
public class init
4
{
5
  public static class NativeClass
6
  {
7
    static
8
    {
9
      System.out.println("static initializer 2");
10
      System.loadLibrary("init"); // if it's here, this app doesn't work
11
    }
12
 
13
    public static native void printHello();
14
  }
15
 
16
  static
17
  {
18
    System.out.println("static initializer 1");
19
  }
20
 
21
  public static void main(String[] args)
22
  {
23
    //System.loadLibrary("test"); // if it's here, this app works
24
    NativeClass.printHello();
25
  }
26
}

powered by: WebSVN 2.1.0

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