| From | Sent On | Attachments |
|---|
| Subject: | Re: Possible bug with static initializers in JDK 1.1.8 | |
|---|---|---|
| From: | Spencer Proffit (spen...@veriohosting.com) | |
| Date: | May 1, 2001 7:24:38 am | |
| List: | org.freebsd.freebsd-java | |
Refine Search
| From | Sent On | Attachments |
|---|---|---|
| Spencer Proffit | Apr 30, 2001 12:15 pm | |
| Gabor Kincses | Apr 30, 2001 12:41 pm | |
| Spencer Proffit | May 1, 2001 7:24 am | |
| Gabor Kincses | May 1, 2001 7:52 am |
| Subject: | Re: Possible bug with static initializers in JDK 1.1.8 | |
|---|---|---|
| From: | Spencer Proffit (spen...@veriohosting.com) | |
| Date: | May 1, 2001 7:24:38 am | |
| List: | org.freebsd.freebsd-java | |
I tried compiling with jikes with the same result.
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
-- Spencer Proffit spen...@veriohosting.com
To Unsubscribe: send mail to majo...@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message

