X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: Solly Ezekiel To: "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 Content-Language: en-US acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit 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/