Deprecation of String(String) constructor

Dave Brosius dbrosius at mebigfatguy.com
Mon Sep 5 19:54:33 UTC 2016


Hi Folks,

I notice in that the

String 
<http://download.java.net/java/jdk9/docs/api/java/lang/String.html#String-java.lang.String->(String 
<http://download.java.net/java/jdk9/docs/api/java/lang/String.html> original)

constructor as seen here

http://download.java.net/java/jdk9/docs/api/index.html

is not deprecated... Is there any reason it should not be?

Originally it made some sense when String byte array sharing was used, 
but now that that is gone, i don't see the point. Am I missing something?


More information about the core-libs-dev mailing list