JNI calling the first method of a class.

Chris Gray chris.gray@kiffer.be
Wed Jul 1 11:47:00 GMT 2009


> 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




More information about the Java mailing list