delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/06/13:35:09

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: Solly Ezekiel <sezekiel AT blue DOT aero>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Wed, 6 Feb 2008 10:34:13 -0800
Subject: GCJ support for Java 1.5
Message-ID: <1E7651B54633264AA72E772B425690A20C3B2FCD@EXC.blueorigin.com>
Accept-Language: en-US
acceptlanguage: en-US
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m16IYorH014068

Hello,

I have a question I haven't seen addressed in the FAQ and mailing lists.  Specifically, are there plans for gcj under Cygwin to support Java 1.5 features such as generics?

The gcj web page (http://www.gnu.org/software/gcc/java/) says Java 1.5 language support is available as of gcc v4.3, but Cygwin is up to only v3.4 of gcc.  I have tried a few workarounds, all unsuccessfully:

        * Use the Java 1.5 compiler to compile the Java to bytecode, then use gcj to compile the bytecode: doesn't work because of new Java system calls (such as System.nanoTime).

        * Use the Java 1.5 compiler to produce bytecode for an earlier release of Java (say 1.2), then use gcj to compile the bytecode: doesn't work because if you're going to produce 1.2 bytecode, you have to be compiling 1.2 source.

        * Use the Java 1.5 rt.jar as the boot class library for gcj: causes gcj to quit with a cryptic error about memory size (which I haven't investigated further).

One thing I haven't tried is to download and compile gcc v4.3 from source.  Otherwise it looks like my best bet is to wait until gcj can compile Java 1.5, and implement things a different way (e.g. using JNI) for now.  Or is there a better way?

Thanks,
Sol Ezekiel


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019