https://bugs.openjdk.java.net/browse/JDK-8088718 diff is in the bug report but it looks like this :- - if (x1 == x2 && y1 == y1) { + if (x1 == x2 && y1 == y2) { -phil.