[1067] in java-interest

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

Re: java-interest-digest V1 #113

daemon@ATHENA.MIT.EDU (Jeff White)
Thu Aug 17 22:49:17 1995

From: Jeff White <jsw@cs.brown.edu>
Date: Thu, 17 Aug 1995 19:59:56 -0400
To: java-interest@java.sun.com
In-Reply-To: <199508132321.QAA22967@webrunner.neato.org>
Reply-To: jsw@cs.brown.edu
CC: R.A.Milowski-2@tc.umn.edu


>>>>> "R.A. Milowski" == owner-java-interest-digest  <owner-java-interest-digest@java.sun.com> writes:
    R.A. Milowski> I'm having a bit of trouble getting C++ code to
    R.A. Milowski> create a Java object instance.  It seems to give me
    R.A. Milowski> back the object handle but it doesn't call the
    R.A. Milowski> objects constructor.

    R.A. Milowski> to work properly Hjava_lang_Object *obj =
    R.A. Milowski> execute_java_constructor( 0, "jsgml/MessageEvent",
    R.A. Milowski> MessageEventClass, "(Ljava/lang/String;)V", js );

I think I replied to this already, but I'll to it again and CC you
personally in case there was a problem. .

Your constructor signature should be just "(Ljava/lang/String;)"
Don't put the void as the return value, as constructors don't return
anything.

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            |
 --------------------------------------------------------------------
-
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