ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27541] - JunitReport task fails under JDK 1.5
Date Thu, 03 Jun 2004 00:24:08 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27541>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27541

JunitReport task fails under JDK 1.5





------- Additional Comments From sbailliez@apache.org  2004-06-03 00:24 -------
Ok I found what is the root cause of the exception in Xalan.
That's a bug in JDK 1.5B1 for java.util.Properties as they completely rewrote 
it and a comment is only considered if it is a newline, in our case, the 
comment ends up as a property.

I could not check for B2 but it does work fine for JDK 1.4 of course.

For a quick'n dirty fix for JDK 1.5:
In xalan.jar extract the file org/apache/xml/serializer/Encoding.properties
You will notice that the last line is
# can be found at http://www.iana.org/assignments/character-sets
Add an extra line feed at the end of this line.

Run your JVM 1.5 with system property:
-Dorg.apache.xalan.serialize.encodings=file://my/path/to/Encodings.properties

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message