This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Missing java.lang.String constructor in libjava
- From: Bryce McKinlay <bmckinlay at gmail dot com>
- To: Erik Larsson <catacombae at gmail dot com>
- Cc: "java at gcc dot gnu dot org" <java at gcc dot gnu dot org>
- Date: Mon, 1 Sep 2014 10:20:04 +0100
- Subject: Re: Missing java.lang.String constructor in libjava
- Authentication-results: sourceware.org; auth=none
- References: <5403FFAE dot 6010407 at gmail dot com>
On Mon, Sep 1, 2014 at 6:10 AM, Erik Larsson <catacombae@gmail.com> 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