On Wed, 30 Jun 2021 02:54:21 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

> But you cannot change the return type later, so all these instanceof+casts 
> will be there forever.

Well, if there is a reason the API can be amended in the future version of 
Java. It is not cast in stone. Yes, it will require some justification, but if 
justification is provided then API can be changed.

-------------

PR: https://git.openjdk.java.net/jdk17/pull/178

Reply via email to