Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Different behaviour when generating hashCode and equals
Different behaviour when generating hashCode and equals [message #1795654] Wed, 26 September 2018 12:39 Go to next message
Lars Briem is currently offline Lars BriemFriend
Messages: 22
Registered: June 2011
Junior Member
Generating hashCode and equals with the new feature Use Objects.hash and Objects.equals method considers super.equals, but not super.hashCode. When using the old style, super.hashCode will be considered.

Why is super.hashCode not considered when using Objects.hash?
Re: Different behaviour when generating hashCode and equals [message #1795667 is a reply to message #1795654] Wed, 26 September 2018 14:04 Go to previous message
Till Brychcy is currently offline Till BrychcyFriend
Messages: 3
Registered: May 2016
Junior Member
It should be.
Please file a bug at https://bugs.eclipse.org/bugs/ (in Eclipse > JDT > UI)
Previous Topic:Hover harassment
Next Topic:Turn off formatter for commented lines
Goto Forum:
  


Current Time: Fri Apr 19 10:06:25 GMT 2024

Powered by FUDForum. Page generated in 0.01500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top