mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 05:58:56 +08:00
6932a1994e
* lib/libjava.exp (gcj_invoke): Moved... * libjava.jni/jni.exp: ...from here. * libjava.cni/shortfield.out: New file. * libjava.cni/shortfield.java: New file. * libjava.cni/natshortfield.cc: New file. * libjava.cni/natlongfield.cc: New file. * libjava.cni/longfield.out: New file. * libjava.cni/longfield.java: New file. * libjava.cni/cni.exp: New file. From-SVN: r64702
23 lines
365 B
Java
23 lines
365 B
Java
public class longfield
|
|
{
|
|
long lval = 232300;
|
|
boolean bval = true;
|
|
String sval = "maude";
|
|
|
|
public native void doitc ();
|
|
|
|
public void doitj()
|
|
{
|
|
System.out.println(lval);
|
|
System.out.println(bval);
|
|
System.out.println(sval);
|
|
}
|
|
|
|
public static void main(String[] args)
|
|
{
|
|
longfield f = new longfield();
|
|
f.doitc();
|
|
f.doitj();
|
|
}
|
|
}
|