[jira] [Commented] (CXF-7342) org.apache.cxf.attachment.AttachmentUtilTest.xml fails with jdk 9 preview

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (CXF-7342) org.apache.cxf.attachment.AttachmentUtilTest.xml fails with jdk 9 preview

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/CXF-7342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16010600#comment-16010600 ]

Adam Anderson commented on CXF-7342:
------------------------------------

I haven't seen this issue since I originally reported it. It is possible that I had something built incorrectly in my workspace which might have caused the error. I will attempt to recreate the problem again.

> org.apache.cxf.attachment.AttachmentUtilTest.xml fails with jdk 9 preview
> -------------------------------------------------------------------------
>
>                 Key: CXF-7342
>                 URL: https://issues.apache.org/jira/browse/CXF-7342
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Adam Anderson
>            Assignee: Freeman Fang
>
> org.junit.ComparisonFailure: expected:<[世界ーファイル].txt> but was:<[世界ーファイル].txt>
> at org.apache.cxf.attachment.AttachmentUtilTest.testContendDispositionFileNameKanjiChars(AttachmentUtilTest.java:100)
> JEP 254: Compact Strings changes the way java Strings are internalized. The test case has a hardcoded utf-16 string to 'cheat' the utf-8 Kanji characters. When compiled with jdk 8 and ran with java 9 the utf-16 hardcoded string: "世界ーファイル" is handled literally and the comparison fails, even though the output of [世界ーファイル].txt is correct.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)