You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Sebastien Sahuc <ss...@imediation.com> on 2000/08/24 13:31:30 UTC
[C2] bug in Javac.parseClassicError() on Windows system
The class
org.apache.cocoon.components.language.programming.java.Javac
have a bug in method
CompileError parseClassicError(String error)
Indeed in Windows the error String will looks like :
C:\cocoon\WEB-INF\[...]
whereas in UNIX it will be :
/usr/cocoon/WEB-INF
Though the method is constructing a StringTokenizer based on the
separator ':' which causes NumberFormatException in Windows (line 177 of
Javac) by tryin g to convert into integer the following string
'\cocoon\WEB-INF\[...]'
All the best,
Sebastien
Re: [C2] bug in Javac.parseClassicError() on Windows system
Posted by Stefano Mazzocchi <st...@apache.org>.
Sebastien Sahuc wrote:
>
> The class
> org.apache.cocoon.components.language.programming.java.Javac
>
> have a bug in method
> CompileError parseClassicError(String error)
>
> Indeed in Windows the error String will looks like :
> C:\cocoon\WEB-INF\[...]
>
> whereas in UNIX it will be :
> /usr/cocoon/WEB-INF
>
> Though the method is constructing a StringTokenizer based on the
> separator ':' which causes NumberFormatException in Windows (line 177 of
> Javac) by tryin g to convert into integer the following string
> '\cocoon\WEB-INF\[...]'
Will fix right away.
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------