title: Is it likely that Oracle will ever change the way Java computes hash codes for java.lang.String's?
body: <p>Is it likely that Oracle will ever change the way Java computes hash codes for java.lang.String's?</p>
  
  <p>I'm making an optimization that relies on the way hash codes are computed for strings, as per the java docs</p>
  
  <pre><code>s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
  </code></pre>
  
  <p><a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html#hashCode" rel="nofollow">http://download.oracle.com/javase/6/docs/api/java/lang/String.html#hashCode</a>()</p>