[1632] in java-interest

home help back first fref pref prev next nref lref last post

Re: Accessing java String from native c function.

daemon@ATHENA.MIT.EDU (Imran Balkhi (NT))
Tue Sep 12 01:05:40 1995

Date: Mon, 11 Sep 1995 18:33:44 -0700
From: ibalkhi@dnt.dialog.com (Imran Balkhi (NT))
To: ibalkhi@dnt.dialog.com, jsw@cs.brown.edu
Cc: cmcmanis@scndprsn.Eng.Sun.COM, Orca.Starbuck@Eng.Sun.COM,
        java-interest@java.sun.com

> From jsw@cs.brown.edu Mon Sep 11 18:14:18 1995
> From: Jeff White <jsw@cs.brown.edu>
> Date: Mon, 11 Sep 1995 21:14:08 -0400
> To: ibalkhi@dnt.dialog.com
> Subject: Re: Accessing java String from native c function.
> Cc: cmcmanis@scndprsn.Eng.Sun.COM, Orca.Starbuck@Eng.Sun.COM
> 
 
> 
> Your signature is missing a semicolon.  Change it to either "(V)LString;" or
> "(V)Ljava_lang_String;"  One of those should work.  (I'm pretty sure
> you put a V for void parameters... if that doesn't work then take out
> the V).  
> 

I tried the following four things with all of them gave exceptions at runtime

1)"()LString;"
2)"()Ljava_lang_String;"

	1 & 2 resulted in 

java.lang.IncompatibleClassChangeException J_AccNumType: dynamic method get_AccNum()Ljava_lang_String; not found
	at J_AccNumType.saveGuts(AccNumType.java:40)
	at TestScript.main(TestScript.java:34)


3)"(V)LString;"
4)"(V)Ljava_lang_String;"

	3 & 4 resulted in

java.lang.ArrayIndexOutOfBoundsException
	at J_AccNumType.saveGuts(AccNumType.java:40)
	at TestScript.main(TestScript.java:34)



> Whenever you have an Object type, you end it with a semicolon.
> 
> jeff
> 
>  --------------------------------------------------------------------
> | Jeff White jsw@cs.brown.edu http://www.cs.brown.edu/people/jsw/    |
> | "So you run and you run to catch up with the sun but it's sinking  |
> | Racing around to come up behind you again" - pink floyd            |
>  --------------------------------------------------------------------
> 

Thank's 
Imran
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post