From owner-freebsd-java Tue May 1 7:52:47 2001 Delivered-To: freebsd-java@freebsd.org Received: from polarbear.nameprotect.com (mail.nameprotect.com [12.40.85.19]) by hub.freebsd.org (Postfix) with ESMTP id 90BE237B422 for ; Tue, 1 May 2001 07:52:44 -0700 (PDT) (envelope-from gabor@nameprotect.com) Received: from nameprotect.com (w2kbuild.nameprotect.com [192.168.1.161]) by polarbear.nameprotect.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id J0DDD2Z8; Tue, 1 May 2001 09:52:57 -0500 Message-ID: <3AEECDBF.EB2AA0AF@nameprotect.com> Date: Tue, 01 May 2001 09:52:47 -0500 From: Gabor Kincses X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Spencer Proffit Cc: freebsd-java@freebsd.org Subject: Re: Possible bug with static initializers in JDK 1.1.8 References: <3AEDB9DC.E627BCD6@veriohosting.com> <3AEDBFFE.F1ECD545@nameprotect.com> <3AEEC73C.7E7C2AAE@veriohosting.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Spencer Proffit wrote: > > I tried compiling with jikes with the same result. I have tried it on JDK 1.1.7 on Solaris and got the same results. JDK 1.3.0-RC works fine. Compiled with jikes in both cases. You may want to try the IBM Linux JDK 1.1.8 if you really need to stick to 1.1. Otherwise 1.2-1.3 might be better, the JITs are much better anyway. > > Gabor Kincses wrote: > > > > Spencer Proffit wrote: > > > > > > I am using java 1.1.8 on FreeBSD 4.2-RELEASE. If I compile the > > > following code: > > > > > > package scratch.test; > > > > > > public class StaticTest { > > > static { > > > java.util.ResourceBundle.getBundle("scratch.test.StaticTest"); > > > } > > > > > > public static void main(String[] argv) { > > > System.out.println("Hello World!"); > > > } > > > } > > > > > > I get the following error: > > > > > > # javac scratch/test/StaticTest.java > > > # java scratch.test.StaticTest > > > Can't find class scratch.test.StaticTest > > > # > > > > > > It doesn't matter if I compile if with JDK 1.3 on linux or jdk 1.1.8 on > > > FreeBSD. > > > It works fine in linux JDK 1.3 and FreeBSD JDK 1.2.2. It also works if > > > I comment out the bit about the resource bundle. It doesn't make a > > > difference if the properties file exists or not, it always fails on > > > FreeBSD JDK 1.1.8, and on other JDKs it gives the correct error if the > > > file is not found. > > > > Have you tried jikes? We have had problems with static initializers in > > javac that jikes handled fine. -- Gabor Kincses Running FreeBSD 4.3-RC3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message