users@shoal.java.net

Compiler issues with java 1.5

From: Olaf Krische <java_at_ecopatz.de>
Date: Tue, 7 Oct 2008 22:15:19 +0200

Just for info, if anyone cares.

I downloaded this one:

- shoal-1.1_08202008.zip

Then i created Test.java

import java.io.*;
import com.sun.enterprise.ee.cms.core.*;
public class Test {

   public Test() {
        GMSException ex = new GMSException();
        IOException e = new IOException(ex);
        // huhu
   }
}

And i compiled it with javac 1.5.0_15

javac -cp shoal-gms.jar:jxta.jar Test.java

And i receive the following error:

Test.java:7: cannot find symbol
symbol : constructor IOException(com.sun.enterprise.ee.cms.core.GMSException)
location: class java.io.IOException
        IOException e = new IOException(ex);
     
Weird.

The same code with javac 1.6.0_10-rc, no problems.

In the Manifest of your jar is written for shoal-gms.jar:

Created-By: 1.5.0_14-b03 (Sun Microsystems Inc.)

Hm.