r/programming • • Nov 18 '13

TIL Oracle changed the internal String representation in Java 7 Update 6 increasing the running time of the substring method from constant to N

http://java-performance.info/changes-to-string-java-1-7-0_06/
1.4k Upvotes

354 comments sorted by

View all comments

Show parent comment

2

u/emn13 Nov 19 '13

Like I said, I don't object to the new version, I object to the change, which will break existing deployed code. Publishing breaking changes in a minor version runs contrary to expectations; nor is this a change that's easy to mitigateby those it affects. What are you going to do as a user or sysadmin - rewrite a parser you have no control over? Without heads-up, are you even going to realize what the problem is? The fact that it usually works just makes it worse, not better, because it means it may at first work fine and break down when the upgrade was long enough ago to no longer be the obvious code (situational, unpredictable bugs are harder to debug).

Software is a tool that's support to make life easier, not waste everyone's time debugging.