From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 356 invoked by alias); 7 May 2009 09:17:11 -0000 Received: (qmail 343 invoked by uid 22791); 7 May 2009 09:17:10 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 May 2009 09:17:05 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n479H3NU015441; Thu, 7 May 2009 05:17:03 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n479H2Ss005106; Thu, 7 May 2009 05:17:02 -0400 Received: from zebedee.pink (vpn-12-117.rdu.redhat.com [10.11.12.117]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n479H1dV018833; Thu, 7 May 2009 05:17:01 -0400 Message-ID: <4A02A70C.3030101@redhat.com> Date: Thu, 07 May 2009 09:17:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.17 (X11/20081009) MIME-Version: 1.0 To: Sal CC: java@gcc.gnu.org Subject: Re: GCJ with OpenJDK Java API instead of GNU Classpath References: <4A020407.2090306@gmail.com> In-Reply-To: <4A020407.2090306@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2009-05/txt/msg00014.txt.bz2 Sal wrote: > Forgive me if this is a silly question - but I wanted to ping the list > before spending any time/effort here. > > Grabbing GCJ's standard source releases, one can see that GNU classpath > is integrated. I've actually used classpath a lot and its a very > stable API for me. > > However - given recent events, particularly the 'freeing' of Java > sources by Sun - is it a good idea to attempt to use Sun's 'official' > Java API sources instead? This would give the option of maximum Java > API compatibility but also giving the ability to precompile native code > using GCJ (which you cant do with OpenJDK afaik) > > So my questions: > > - Has anyone already attempted building the OpenJDK java sources with > GCJ/and/or tried to swap out classpath for those classes? > - if not are people interested in going down this path? I am willing to > put some efforts here. > - Are there licensing issues with linking OpenJDK to other code via GCJ? > From what I remember 'linking' is a touchy area with some FOSS licenses. It's all GPL + exception, so there are no licence difficulties. This would be an excellent thing to do, but it would be difficult. In particular, class loading and class initialization are done in very different ways, and this would all need to be rewritten. I'd love someone to do this, but I don't want them to be under any illusion about how difficult it might be. Andrew.