This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: JNI calling the first method of a class.
- From: "Chris Gray" <chris dot gray at kiffer dot be>
- To: "aph" <aph at redhat dot com>
- Cc: "abhi00" <abhi00 at gmail dot com>, "java" <java at gcc dot gnu dot org>
- Date: Wed, 1 Jul 2009 13:47:43 +0200
- Subject: Re: JNI calling the first method of a class.
> abhishek desai wrote:
>
> > Is there any way to call the first method of a class in JNI ?
>
> I am confused by this question. What makes a method the first?
> There is no explicit ordering of methods in class files, as far as I
> know.
The static initializer could be called the "first" method, because it will be
called before any other method. An in that case the answer is "no - by design".
Chris Gray /k/ Embedded Java Solutions
_________________________________________
Scarlet Mobile, free subscription in combination with your Scarlet One or ADSL, visit http://www.scarlet.be/fr/mobile3g