Re: Missing java.lang.String constructor in libjava
Bryce McKinlay <[email protected]> Mon, 1 Sep 2014 10:20:04 +0100
| Newsgroups | gmane.comp.gcc.java.devel |
|---|---|
| Message-ID | <CALUNu-rBd0+mqcYmvhHUxzMmjiezeSpOjaLw=3AeTj6-4p5ELA@mail.gmail.com> |
On Mon, Sep 1, 2014 at 6:10 AM, Erik Larsson <[email protected]> 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