On Sep 6, 2016, at 2:18 PM, Tim Ellison <t.p.elli...@gmail.com> wrote: > > People stash all sorts of things in (immutable) Strings. Reducing the > limits in JDK9 seems like a regression. Was there any consideration to > using the older Java 8 StringCoding APIs for UTF-16 strings (already > highly perf tuned) and adding additional methods for compact strings > rather than rewriting everything as byte[]'s?
It doesn't help now, but https://bugs.openjdk.java.net/browse/JDK-8161256 proposes a better way to stash immutable bits, CONSTANT_Data. (Caveat: Language bindings not yet included.) Eventually we'll get there. — John