_Jv_InitPrimClass?

Bryce McKinlay bryce@waitaki.otago.ac.nz
Sun Mar 3 19:03:00 GMT 2002


Adam Megacz wrote:

>Why is this in _Jv_InitPrimClass?
>
>  // We must set the vtable for the class; the Java constructor
>  // doesn't do this.
>  (*(_Jv_VTable **) cl) = java::lang::Class::class$.vtable;
>
>It appeared sometime in late December... why do we use it now, and why
>didn't we need it before?
>

Before that it was done in a special native constructor in Class.h, 
which was implicitly called by static initializers in prims.cc, which 
were generated by a preprocessor macro. The new way fixes all kinds of 
problems.

regards

Bryce.




More information about the Java mailing list