This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Adding fields to object_type_node


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]