-
Enhancement
-
Resolution: Fixed
-
P5
-
None
This utility class contains an encode method that appears to have been introduced to avoid some potential bootstrapping issue with charset encoders.
Since JDK 9 we have a fast-path (which avoids creating encoders) for UTF-8-encoding strings which is bootstrapped very early, so it seems safe to rewire this and remove the UTF8 helper class.
Since JDK 9 we have a fast-path (which avoids creating encoders) for UTF-8-encoding strings which is bootstrapped very early, so it seems safe to rewire this and remove the UTF8 helper class.