You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2014/03/31 22:19:15 UTC

[jira] [Reopened] (LUCENE-5560) Cleanup charset handling for Java 7

     [ https://issues.apache.org/jira/browse/LUCENE-5560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uwe Schindler reopened LUCENE-5560:
-----------------------------------


I have some more stuff in Solr to fix. Inspired by [~iorixxx], I fixed more code, especially tests (and some oversights). I also found crazy conversions in Solr like: {{byte[] -> String -> byte[] -> String}} without any sense to copy files or streams.

I will post patch and backport. For now I left the hardcoded strings in tests for IOUtils/FileUtils (because of import clash with {{IOUtils.UTF_8}} from Lucene. I also left URLEncoder/Decoder.

> Cleanup charset handling for Java 7
> -----------------------------------
>
>                 Key: LUCENE-5560
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5560
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>             Fix For: 4.8, 5.0
>
>         Attachments: LUCENE-5560-addonByAhmet.patch, LUCENE-5560.patch, LUCENE-5560.patch, LUCENE-5560.patch, LUCENE-5560.patch
>
>
> As we are now on Java 7, we should cleanup our charset handling to use the official constants added by Java 7: {{StandardCharsets}}
> This issue is just a small code refactoring, trying to nuke the IOUtils constants and replace them with the official ones provided by Java 7.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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