java.lang.string.substring.nocopy is not documented, but can be used to fix a difference in behavior with Hotspot as per eclipse-openj9/openj9#8102 (comment) ...
标题中的substring方法指的是字符串的substring(int beginIndex, int endIndex)方法,这个方法在jdk6,7是有差异的。 substring有什么用? substring返回的是字符串索引位置beginIndex开始,endIndex-1结束的字符串。 下面看看在JDK之间,它们的实现原理有什么不一样,及值得注意的地方。
一些您可能无法访问的结果已被隐去。
显示无法访问的结果