Class.h and Class.java both define zero-arg constructor

Bryce McKinlay bryce@waitaki.otago.ac.nz
Mon Dec 10 19:46:00 GMT 2001


Adam Megacz wrote:

>Is it safe to assume that that method will get inlined?
>
Perhaps not.

>What does the #pragma implementation "Class.h" in natClass.cc mean?
>
That "real" implementations for the inline functions in Class.h will get 
emitted in this compilation unit, I think.

>Where does that constructor get
>called from? There's a comment pointing to prims.cc, but I don't see a
>"new Class()" anywhere in there.
>

#define DECLARE_PRIM_TYPE(NAME)            \
  _Jv_ArrayVTable _Jv_##NAME##VTable;        \
  java::lang::Class _Jv_##NAME##Class;

regards

Bryce.




More information about the Java mailing list