RFR : Remove character coders from sun.misc
chris.hegarty at oracle.com
Tue Dec 15 06:55:27 UTC 2015
> On 14 Dec 2015, at 9:51 p.m., Roger Riggs <Roger.Riggs at oracle.com> wrote:
Thanks for the review Roger.
> Removing dead code is great!
It sure is!
>> On 12/14/2015 4:15 PM, Chris Hegarty wrote:
>> As part of the preparation for JEP 260 , and the cleanup of technical debt in
>> sun.misc, I am proposing to remove the character coders.
>> Base abstract classes for the coders.
>> $ hg rm src/java.base/share/classes/sun/misc/CharacterEncoder.java
>> $ hg rm src/java.base/share/classes/sun/misc/CharacterDecoder.java
>> Base64, replaced with standard API in Java SE 8 .
>> $ hg rm src/java.base/share/classes/sun/misc/BASE64Decoder.java
>> $ hg rm src/java.base/share/classes/sun/misc/BASE64Encoder.java
>> Uuencoding , most recently seen in use back in 2006 in ant 1.6.5, before
>> being replaced in 1.7.0 with their own copy.
>> $ hg rm src/java.base/share/classes/sun/misc/UUDecoder.java
>> $ hg rm src/java.base/share/classes/sun/misc/UUEncoder.java
>> Lesser known coders designed to convert binary data into printable characters.
>> The characters are assumed to exist, but they are not assumed to be ASCII.
>> No sightings in the wild!
>> $ hg rm src/java.base/share/classes/sun/misc/UCDecoder.java
>> $ hg rm src/java.base/share/classes/sun/misc/UCEncoder.java
>> Related tests:
>> $ hg rm test/sun/misc/Encode/
>> removing test/sun/misc/Encode/DecodeBuffer.java
>> removing test/sun/misc/Encode/Encode.java
>> removing test/sun/misc/Encode/GetBytes.java
>>  https://bugs.openjdk.java.net/browse/JDK-8132928
>>  http://docs.oracle.com/javase/8/docs/api/java/util/Base64.html
>>  https://en.wikipedia.org/wiki/Uuencoding
More information about the jdk9-dev