You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/09/08 17:02:46 UTC

[jira] [Commented] (LUCENE-6760) TestUtil#randomWhitespace() broken for Java 9 (Unicode 7)

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

ASF subversion and git services commented on LUCENE-6760:
---------------------------------------------------------

Commit 1701816 from [~thetaphi] in branch 'dev/branches/lucene_solr_5_3'
[ https://svn.apache.org/r1701816 ]

Backport:
LUCENE-6760: Prevent test failure in Java 9 b76+
SOLR-7958: Move TestUtil#randomWhitespace to the only Solr test that is using it
LUCENE-6760: if the list of whitspace characters changes again in a future JVM, fail fast with a clear error that the test needs corrected -- even if jvm assertions are disabled OR we get really lucky with the chars radnomly selected (merge r1698227)

> TestUtil#randomWhitespace() broken for Java 9 (Unicode 7)
> ---------------------------------------------------------
>
>                 Key: LUCENE-6760
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6760
>             Project: Lucene - Core
>          Issue Type: Test
>         Environment: Java 9 build 76+
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>            Priority: Blocker
>              Labels: Java9
>             Fix For: Trunk, 5.4, 5.3.1
>
>         Attachments: LUCENE-6760.patch, LUCENE-6760.patch, LUCENE-6760.patch, LUCENE-6760.patch
>
>
> Java 9 changed its character tables to unicode version 7.0. The table updates are listed here: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/86206517258d
> Because of this, character {{\u180E}} is no longer treated as whitespace, so TestUtil#randomWhitespace() fails.
> I will remove this character from the list and update the documentation JRE_VERSION_MIGRATION.txt.
> We should maybe make this character list dynamic (e.g. TestUtil initializes it on static class init one time by iterating over all 16 bit characters). Maybe somebody else has an idea (there is already a TODO in the code about that).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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