users@shoal.java.net

Re: [Shoal-Users] Compiler issues with java 1.5

From: Shreedhar Ganapathy <Shreedhar.Ganapathy_at_Sun.COM>
Date: Tue, 07 Oct 2008 15:59:19 -0700

Hi Olaf
That particular constructor in IOException came in 1.6

http://java.sun.com/javase/6/docs/api/java/io/IOException.html#IOException(java.lang.Throwable)
<http://java.sun.com/javase/6/docs/api/java/io/IOException.html#IOException%28java.lang.Throwable%29>

hth
Shreedhar

Olaf Krische wrote:
> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_shoal.dev.java.net
> For additional commands, e-mail: users-help_at_shoal.dev.java.net
>
>