From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3494 invoked by alias); 20 Jan 2011 08:50:15 -0000 Received: (qmail 3476 invoked by uid 22791); 20 Jan 2011 08:50:14 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_IB X-Spam-Check-By: sourceware.org Received: from mail-fx0-f47.google.com (HELO mail-fx0-f47.google.com) (209.85.161.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 Jan 2011 08:50:10 +0000 Received: by fxm17 with SMTP id 17so347859fxm.20 for ; Thu, 20 Jan 2011 00:50:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.96.78 with SMTP id g14mr1825253fan.15.1295513407719; Thu, 20 Jan 2011 00:50:07 -0800 (PST) Received: by 10.223.102.76 with HTTP; Thu, 20 Jan 2011 00:50:07 -0800 (PST) Date: Thu, 20 Jan 2011 08:50:00 -0000 Message-ID: Subject: a question about directory structure of libjava From: majia gm To: gcc-help@gcc.gnu.org, Java List Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00011.txt.bz2 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