[erlang-questions] Jinterface and GCJ 4.4

Raimo Niskanen raimo+erlang-questions@REDACTED
Mon Feb 15 08:45:06 CET 2010

On Sat, Feb 13, 2010 at 01:47:32PM +0300, Sergei Golovan wrote:
> Hi!
> While trying to enable jinterface for Debian Erlang package I've tried
> to build it using a few Java compilers available in Debian. What I've
> found is that most of the compilers either build jinterface fine
> (OpenJDK-6) or don't pass JDK 1.5 test in configure (GCJ-4.3 or
> older). But GCJ 4.4 passes this test but fails to build jinterface
> because it has String(int[], int, int) constructor unimplemented. I've
> added an additional check for this to configure.in (see attachment)
> but wonder which would be the correct long term solution. If it's the
> only problem with GCJ then may be it'd be better not to use
> String(int[], int, int) at all?

We know of no actual problems with GJC. When stepping up
the requirements for Jinterface to JDK 1.5 we just chose
a configure test for a new feature in Sun JDK 1.5 that
we started to use, and that is a new iterator syntax.

We test here at OTP with Sun JDK and IBM Java and have not
(yet) made an effort to try GJC, but if it supports the
new iterator syntax perhaps someone should look into
how much rewriting is needed to make Jinterface build
by not using the String(int[], int, int) constructor.

If Jinterface would build and run with GJC we should start
testing it...

> Cheers!
> -- 
> Sergei Golovan

> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED


/ Raimo Niskanen, Erlang/OTP, Ericsson AB

More information about the erlang-questions mailing list