You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2020/05/28 00:49:31 UTC

[GitHub] [groovy] danielsun1106 commented on pull request #1260: GROOVY-9575 ASTNode.hashCode violates Object.hashCode contract: does not return consistent value

danielsun1106 commented on pull request #1260:
URL: https://github.com/apache/groovy/pull/1260#issuecomment-635023987


   https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#hashCode()
   
   > Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. **This integer need not remain consistent from one execution of an application to another execution of the same application.**
   
   As the javadoc of `hashCode` shows, "This integer need not remain consistent from one execution of an application to another execution of the same application."


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org