[
https://issues.apache.org/jira/browse/OLINGO-833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15039762#comment-15039762
]
Michael Bolz commented on OLINGO-833:
-------------------------------------
The problem occurs because the used unicode character for the test {{\u1BE4}}
([more|http://www.fileformat.info/info/unicode/char/1BE4/index.htm]) is defined
first in Unicode Standard, version 6.0.
Java 6 supports only {{Unicode Standard, version 4.0.}} (see
[JavaDoc|http://docs.oracle.com/javase/6/docs/api/java/lang/Character.html]).
First with Java 7 the {{Unicode Standard, version 6.0.}} is supported (see
[JavaDoc|http://docs.oracle.com/javase/7/docs/api/java/lang/Character.html]).
As workaround we could replace the test character with e.g. {{\u00AA}} which is
defined with {{Unicode Standard, version 1.1.}}
([see|http://www.fileformat.info/info/unicode/char/00aa/index.htm]).
However it should be validated which Unicode Standard should be supported for
OData V4.
> SearchTokenizerTest breaks build on JDK 6
> -----------------------------------------
>
> Key: OLINGO-833
> URL: https://issues.apache.org/jira/browse/OLINGO-833
> Project: Olingo
> Issue Type: Bug
> Components: odata4-server
> Affects Versions: (Java) V4 4.0.0
> Reporter: Michael Bolz
> Assignee: Michael Bolz
> Priority: Minor
>
> The test case {{SearchTokenizerTest -> unicodeInWords}} causes a test failure
> when it is run with Java 6 (during Olingo build).
> See failure message below:
> {code}
> unicodeInWords(org.apache.olingo.server.core.uri.parser.search.SearchTokenizerTest)
> Time elapsed: 0.008 sec <<< ERROR!
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizerException:
> Forbidden character in state WORD->ᯤ
> at
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizer$State.forbidden(SearchTokenizer.java:82)
> at
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizer$SearchWordState.nextChar(SearchTokenizer.java:351)
> at
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizer.tokenize(SearchTokenizer.java:607)
> at
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizerTest$Validator.validate(SearchTokenizerTest.java:379)
> at
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizerTest$Validator.resultsIn(SearchTokenizerTest.java:320)
> at
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizerTest.unicodeInWords(SearchTokenizerTest.java:194)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)