HotSpot special cases java.lang.String in a ton of ways. It would be a massive perf hit to have a diff type.
@milessabin I don't think there would be too much work in reimplementing all of java.lang.String's methods to return singletons where poss'.
-
-
-
I think it's fine - it could be a value type around j.l.String...
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.