public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* Missing java.lang.String constructor in libjava
@ 2014-09-01  5:10 Erik Larsson
  2014-09-01  9:00 ` Andrew Haley
  2014-09-01  9:20 ` Bryce McKinlay
  0 siblings, 2 replies; 3+ messages in thread
From: Erik Larsson @ 2014-09-01  5:10 UTC (permalink / raw)
  To: java

Hi,

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?

Best regards,

- Erik

[1] 
http://git.savannah.gnu.org/cgit/classpath.git/commit/?id=0dad3a00f48fa9092e8be66b398d5305129c8115 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Missing java.lang.String constructor in libjava
  2014-09-01  5:10 Missing java.lang.String constructor in libjava Erik Larsson
@ 2014-09-01  9:00 ` Andrew Haley
  2014-09-01  9:20 ` Bryce McKinlay
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Haley @ 2014-09-01  9:00 UTC (permalink / raw)
  To: Erik Larsson, java

On 01/09/14 06:10, 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?

I would have thought so.  Why don't you have a look?

Andrew.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Missing java.lang.String constructor in libjava
  2014-09-01  5:10 Missing java.lang.String constructor in libjava Erik Larsson
  2014-09-01  9:00 ` Andrew Haley
@ 2014-09-01  9:20 ` Bryce McKinlay
  1 sibling, 0 replies; 3+ messages in thread
From: Bryce McKinlay @ 2014-09-01  9:20 UTC (permalink / raw)
  To: Erik Larsson; +Cc: java

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-01  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-01  5:10 Missing java.lang.String constructor in libjava Erik Larsson
2014-09-01  9:00 ` Andrew Haley
2014-09-01  9:20 ` Bryce McKinlay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).