From owner-freebsd-java Mon Apr 30 11:58:57 2001 Delivered-To: freebsd-java@freebsd.org Received: from gatekeeper.orem.verio.net (gatekeeper.orem.verio.net [192.41.0.8]) by hub.freebsd.org (Postfix) with ESMTP id BE43C37B424 for ; Mon, 30 Apr 2001 11:58:53 -0700 (PDT) (envelope-from spencer@veriohosting.com) Received: from proxy.dmz.orem.verio.net (proxy.dmz.orem.verio.net [10.1.1.11]) by gatekeeper.orem.verio.net (Postfix) with ESMTP id 6064D3BF130 for ; Mon, 30 Apr 2001 12:58:53 -0600 (MDT) Received: from veriohosting.com (ufo.office.orem.verio.net [10.2.1.14]) by proxy.dmz.orem.verio.net (Postfix) with ESMTP id 01BD87C004 for ; Mon, 30 Apr 2001 12:58:53 -0600 (MDT) Message-ID: <3AEDB9DC.E627BCD6@veriohosting.com> Date: Mon, 30 Apr 2001 13:15:40 -0600 From: Spencer Proffit X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.17 i686) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: Possible bug with static initializers in JDK 1.1.8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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. -- Spencer Proffit spencer@veriohosting.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message