a question about directory structure of libjava

majia gm <[email protected]>
Newsgroups gmane.comp.gcc.help,gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Hi.

I'm new to gcj. And I'm reading the source code in the directory of
libjava. I'm a little confused by the structure of the directory.

I found that there often exists two java files, which have much
differnce in content, having the same name in different directories.
Such as,

libjava/java/lang/Class.java
libjava/classpath/java/lang/Class.java

Will both of them be used?

I also found C++ files libjava/java/lang/Class.h, which declares the
class Class in C++ corresponding to Class.java.
And libjava/java/lang/natClass.cc, which implements the native methods.

 But there's often no implementation of methods in C++.
 Dose the method code come from the Java file? How dose this happen?


Thank you.

Gmmajia
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.