Hello Phil and Sergey, Here is one more fix of the ClassCastException for invalid surface that we’ve recently got in our products. I’ve updated Sergey’s test so it goes through the problematic code. Unfortunately, I was unable to reproduce the problem by myself (The actual issue was reported only by our customers)
Bug: https://bugs.openjdk.java.net/browse/JDK-8158495 Webrev: http://cr.openjdk.java.net/~avu/JDK-8158495/webrev.00 Best Regards, Alexey