From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8918 invoked by alias); 1 Sep 2014 09:20:09 -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 8902 invoked by uid 89); 1 Sep 2014 09:20:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f177.google.com Received: from mail-wi0-f177.google.com (HELO mail-wi0-f177.google.com) (209.85.212.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 01 Sep 2014 09:20:07 +0000 Received: by mail-wi0-f177.google.com with SMTP id cc10so5692236wib.10 for ; Mon, 01 Sep 2014 02:20:04 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.120.232 with SMTP id lf8mr12703316wjb.35.1409563204114; Mon, 01 Sep 2014 02:20:04 -0700 (PDT) Received: by 10.194.42.104 with HTTP; Mon, 1 Sep 2014 02:20:04 -0700 (PDT) In-Reply-To: <5403FFAE.6010407@gmail.com> References: <5403FFAE.6010407@gmail.com> Date: Mon, 01 Sep 2014 09:20:00 -0000 Message-ID: Subject: Re: Missing java.lang.String constructor in libjava From: Bryce McKinlay To: Erik Larsson Cc: "java@gcc.gnu.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00003.txt.bz2 On Mon, Sep 1, 2014 at 6:10 AM, Erik Larsson wrote: > I was trying to compile some Java 1.5 code into a binary and ran into a > problem. The constructor String(int[], int, int) does not exist in gcj's > libjava, even though it was added to GNU classpath as early as 2006 [1]. > Is this omission intentional? Surely there must have been a code sync > between gcc and GNU classpath since 2006? Hi Eric, There are a few core classes (including java.lang.Object, java.lang.Class, and java.lang.String) for which libgcj has its own implementations that are not fully merged with Classpath. The GCJ compiler has dependencies on certain implementation details of these classes which differ between the GCJ and Classpath versions. It should be pretty straightforward to merge this missing constructor across, of course. Bryce