From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25376 invoked by alias); 16 Aug 2014 22:59:12 -0000 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 Received: (qmail 25364 invoked by uid 89); 16 Aug 2014 22:59:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sat, 16 Aug 2014 22:59:10 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7GMx8ON011193 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 16 Aug 2014 18:59:08 -0400 Received: from zebedee.pink (ovpn-113-28.phx2.redhat.com [10.3.113.28]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7GMx6l4008418; Sat, 16 Aug 2014 18:59:08 -0400 Message-ID: <53EFE23A.4000008@redhat.com> Date: Sat, 16 Aug 2014 22:59:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: Ruben De Smet , java@gcc.gnu.org Subject: Re: Java > 1.5 References: <53EE496B.9020709@telenet.be> <53EF12B3.7000600@redhat.com> <53EF27DB.8000602@telenet.be> In-Reply-To: <53EF27DB.8000602@telenet.be> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00008.txt.bz2 On 16/08/14 10:43, Ruben De Smet wrote: > On 08/16/2014 10:13 AM, Andrew Haley wrote: >> On 15/08/14 18:54, Ruben De Smet wrote: >>> Dear java@gcc.gnu.org list, >>> >>> I've gotten to compile some things with GCJ (hooray!) which don't run >>> fine (ooooh). If I don't come to run it on my own, I'll certainly file a >>> bug report or contact this list. >>> >>> I would like to avoid having to distribute a Java runtime to users, but >>> my teammate is writing code in Java 1.7. I read GCJ only understands 1.5. >>> >>> Is there any development going on for Java 1.7? Would it be a lot of >>> work to implement some Java 1.7 features? I would take it on me if needed. >> >> Right now there's not much prospect of that. The problem is the class >> libraries, which would require a lot of work. The best prospect is to >> convert libgcj to use the libraries from OpenJDK, which would work, >> but again the conversion would take maybe 6 months for someone who >> knows gcj very well, along with some compiler changes. It could be >> done, but there needs to be a compelling reason. > > Is there any reason gcj isn't yet using OpenJDK libraries, or is it just > that you didn't think of that yet? It's a lot of work. libgcj has its own interface to gcj, and we'd need to convert it to the interface the openJDK libraries use. > I guess you'll have to implement all the new 1.6 and 1.7 Java features > to get the OpenJDK libraries to work? Yes, but that's less of an issue. >>> There were two things I noticed with my teammates code that were using >>> 1.7 features. @Override on interfaces and multi exception catch (like >>> catch (IOException | OtherException e) ). >> >> I'm sure it's possible. > > What would it take me to implement them? Should I CC a devel-mailinglist > right here? Sure. But I don't quite understand what you want me to tell you. You'd need to understand the problem and figure out how to fix it. Andrew.