-
Bug
-
Resolution: Incomplete
-
P4
-
None
-
8u211
-
x86_64
-
windows_10
A DESCRIPTION OF THE PROBLEM :
java.awt.Point doesn't override hashCode, but override equals( ).
Trying to use java.awt.Point in HashSet or TreeSet, causes duplicate entries in those Collections.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
import java.awt.Point.
Create two Point objects with same co-ordinates and try adding them to a HashSet or TreeSet
java.awt.Point doesn't override hashCode, but override equals( ).
Trying to use java.awt.Point in HashSet or TreeSet, causes duplicate entries in those Collections.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
import java.awt.Point.
Create two Point objects with same co-ordinates and try adding them to a HashSet or TreeSet