DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22549>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22549 [PATCH] Test code not building / running on JDK 1.2.2 Summary: [PATCH] Test code not building / running on JDK 1.2.2 Product: Ant Version: 1.6Alpha (nightly) Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Core AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The test code seems to not be running on JDK 1.2.2 on linux. I have made minor adaptations to the test to make them work on JDK 1.2.2 again. This is what I have done: removed funny ("u)->ue (`e)->e characters from test source. Let the testcases return 2 instead of -1, some jdk 1.2.2 does wrap -1 to 255 on jdk 1.2.2 which leads to failing testcases not due to ant. Let the ZipEncoding testcase use UnicodeBig instead of UTF16 (UnicodeBig is supported by rt.jar of 1.2.2 as opposed to UTF16) UTF16 is not even listed on http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html The ContainsSelector seems not to work on binary files under jdk 1.2.2. This has not been fixed (error not in test code). When modifying the ContainsSelector to print the exception stacktrace before throwing the BuildException it prints: [junit] sun.io.MalformedInputException [junit] at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:87) [junit] at java.io.InputStreamReader.convertInto(InputStreamReader.java:120) [junit] at java.io.InputStreamReader.fill(InputStreamReader.java:169) [junit] at java.io.InputStreamReader.read(InputStreamReader.java:232) [junit] at java.io.BufferedReader.fill(BufferedReader.java:130) [junit] at java.io.BufferedReader.readLine(BufferedReader.java:267) [junit] at java.io.BufferedReader.readLine(BufferedReader.java:322) [junit] at org.apache.tools.ant.types.selectors.ContainsSelector.isSelected(ContainsSelector.java:212) [junit] at org.apache.tools.ant.types.selectors.BaseSelectorTest.selectionString(BaseSelectorTest.java:164) [junit] at org.apache.tools.ant.types.selectors.BaseSelectorTest.selectionString(BaseSelectorTest.java:142) [junit] at org.apache.tools.ant.types.selectors.ContainsSelectorTest.testSelectionBehaviour(ContainsSelectorTest.java:126) (stacktrace truncated) [junit] Testcase: testSelectionBehaviour took 0.271 sec [junit] Caused an ERROR [junit] Could not read file asf-logo.gif.bz2 [junit] Could not read file asf-logo.gif.bz2 [junit] at org.apache.tools.ant.types.selectors.ContainsSelector.isSelected(ContainsSelector.java:230) [junit] at org.apache.tools.ant.types.selectors.BaseSelectorTest.selectionString(BaseSelectorTest.java:164) [junit] at org.apache.tools.ant.types.selectors.BaseSelectorTest.selectionString(BaseSelectorTest.java:142) [junit] at org.apache.tools.ant.types.selectors.ContainsSelectorTest.testSelectionBehaviour(ContainsSelectorTest.java:126) (stacktrace truncated) Some errors remain in the optional tasks (not investigated, probably due to library issues). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
