Skip to main content

New (String) optimization problem in jdk7u4 to jdk7u6b15

2 replies [Last post]
frederickkaempfer
Offline
Joined: 2007-11-21
Points: 0

The attached, very simple App fails on all recent versions of jdk7. A bug report has been filed.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
csitx
Offline
Joined: 2012-09-13
Points: 0

Can you provide the bug id#

The string implementation changed significantly between 7u5 and 7u6.
Substring now causes the contents to be copied, resulting in significant performance degradation.
This has already been reported as bug: 7197183

frederickkaempfer
Offline
Joined: 2007-11-21
Points: 0

The attachment didn't work. Here is a pastebin link:
http://pastebin.com/sB3N095x

frederickkaempfer
Offline
Joined: 2007-11-21
Points: 0

Fixed in 1.7.0_06-ea-b18. Great, thanks.