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

Sebb commented on CODEC-178:
----------------------------

No, that's not what I'm saying.

Assuming that we are targetting 1.6, it's wrong to deprecate the class.

Further, I don't see a need to deprecate the class once Codec targets 1.7, as 
the constants can then be aliases for the real ones.

There is no need for existing users of the class to have to change the code.
However new code targetting Java 7 should use the Java 7 class instead.
I see no reason to force old code to be updated.

> Deprecate Charsets Charset constants in favor of Java 7's 
> java.nio.charset.StandardCharsets
> -------------------------------------------------------------------------------------------
>
>                 Key: CODEC-178
>                 URL: https://issues.apache.org/jira/browse/CODEC-178
>             Project: Commons Codec
>          Issue Type: Task
>    Affects Versions: 1.9
>         Environment: Apache Maven 3.1.1 
> (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 11:22:22-0400)
> Maven home: C:\Java\apache-maven-3.1.1\bin\..
> Java version: 1.7.0_51, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.7.0_51\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>            Priority: Minor
>             Fix For: 1.10
>
>
> Deprecate Charsets Charset constants in favor of Java 7's 
> java.nio.charset.StandardCharsets



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

Reply via email to