ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: AW: AW: cannot resolve symbol when overriding method.
Date Thu, 10 Mar 2005 10:19:49 GMT
Ok, verified for 1.3.0-C, works with 1.4.2_05-b04.
Mmh javadoc for 1.3 [1] has that method ...
Signature hasnt changed, maybe the compiler is not so restrictive any more.
If I had changed
    protected void readStreamHeader() {
to 
    protected void readStreamHeader() throws java.io.IOException,
java.io.StreamCorruptedException {
it compiles under 1.3

Jan


[1]
http://java.sun.com/j2se/1.3/docs/api/java/io/ObjectInputStream.html#readStr
eamHeader()

> -----Ursprüngliche Nachricht-----
> Von: Sébastien Annedouche [mailto:sannedouche@wanadoo.fr]
> Gesendet am: Donnerstag, 10. März 2005 10:56
> An: Ant Users List
> Betreff: Re: AW: AW: cannot resolve symbol when overriding method.
> 
> Still failing...
> 
>     [javac] Compiling 1 source file to C:\tmp\java
>     [javac] C:\tmp\java\Dummy.java:12: cannot resolve symbol
>     [javac] symbol: class IOException 
>     [javac]       protected void readStreamHeader() {
>     [javac]                      ^
>     [javac] 1 error
> 
> It works when I add the 2 imports.
> Could it be caused by the jdk version I use (1.3.1_05) ? anything 
> missing in my ant configuration ??
> 
> Sebastien.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message