Adding fields to object_type_node
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Wed Oct 10 18:20:00 GMT 2001
Dachuan Yu wrote:
>I still don't quite understand what the relationship between these two things is. When adding new fields in Class.h, it seems that I'm modifying java.lang.Class. While when adding new fields in class_type_node, it seems that every tree constructed as "class_type_node" would involve the added new fields. But how are they related?
>
They are the same. "class_type_node" is simply the Java compilers view
of it, while Class.h is the C++ compilers view of the same thing: the
layout of the fields in each Class object. This is why they must be kept
in sync.
regards
Bryce.
More information about the Java
mailing list