[
https://issues.apache.org/jira/browse/LUCENE-6517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14679784#comment-14679784
]
Brijesh Nekkare commented on LUCENE-6517:
-----------------------------------------
APAR IV71947 fixes this issue. Fixed as part of 15_04 release targeted for
October end.
Error Message:
The java.net.URI object returned by java.nio.file.Path.toUri() is incorrect.
Consequently,the java.nio.Path object created using the URI through the
java.nio.Path.get(URI) is also incorrect.
Problem Summary:
The java.nio.file.Path.toUri() returns an incorrect URI for file paths
comprising of multi-byte characters. The round-trip guarantee provided by the
toUri() specification to the java.io.File class is violated.
This APAR will be fixed in the following Java Releases:
7 SR9 FP20 (7.0.9.20)
7 R1 SR3 FP20 (7.1.3.20)
8 SR2 (8.0.2.0)
Thanks and Regards
Brijesh Nekkare
IBM Java team
> mockfilesystem tests fail with IBM jdk
> --------------------------------------
>
> Key: LUCENE-6517
> URL: https://issues.apache.org/jira/browse/LUCENE-6517
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Robert Muir
> Labels: IBM-J9
>
> Test failures look like this:
> {noformat}
> [junit4] Suite: org.apache.lucene.mockfile.TestVerboseFS
> [junit4] 2> NOTE: reproduce with: ant test -Dtestcase=TestVerboseFS
> -Dtests.method=testURI -Dtests.seed=A5E55A5C894B6526 -Dtests.locale=lt_LT
> -Dtests.timezone=America/Marigot -Dtests.asserts=true
> -Dtests.file.encoding=UTF-8
> [junit4] FAILURE 0.32s J1 | TestVerboseFS.testURI <<<
> [junit4] > Throwable #1: java.lang.AssertionError:
> expected:</home/rmuir/workspace/trunk-ibm/lucene/build/test-framework/test/J1/temp/lucene.mockfile.TestVerboseFS
> A5E55A5C894B6526-001/tempDir-010/中国> but
> was:</home/rmuir/workspace/trunk-ibm/lucene/build/test-framework/test/J1/temp/lucene.mockfile.TestVerboseFS
> A5E55A5C894B6526-001/tempDir-010/-ý>
> [junit4] > at
> __randomizedtesting.SeedInfo.seed([A5E55A5C894B6526:2C5721F741543F17]:0)
> [junit4] > at
> org.apache.lucene.mockfile.MockFileSystemTestCase.testURI(MockFileSystemTestCase.java:72)
> [junit4] > at java.lang.Thread.run(Thread.java:785)
> [junit4] 2> NOTE: leaving temporary files on disk at:
> /home/rmuir/workspace/trunk-ibm/lucene/build/test-framework/test/J1/temp/lucene.mockfile.TestVerboseFS
> A5E55A5C894B6526-001
> [junit4] 2> NOTE: test params are: codec=Asserting(Lucene50): {},
> docValues:{}, sim=RandomSimilarityProvider(queryNorm=true,coord=no): {},
> locale=lt_LT, timezone=America/Marigot
> [junit4] 2> NOTE: Linux 3.13.0-49-generic amd64/IBM Corporation 1.8.0
> (64-bit)/cpus=8,threads=1,free=1578528,total=13041664
> [junit4] 2> NOTE: All tests run in this JVM: [TestVerboseFS]
> [junit4] Completed [4/36] on J1 in 0.97s, 14 tests, 1 failure <<< FAILURES!
> {noformat}
> I think its a JDK bug. I've posted a small testcase here:
> https://developer.ibm.com/answers/questions/194536/bug-in-pathtouri-with-the-default-filesystem-provi.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]