On Tue, 23 Feb 2021 01:38:36 GMT, Ziyi Luo <
[hidden email]> wrote:
> All of the "isAssignableFrom" checks in "engineGetKeySpec" appear to be backwards in Java's KeyFactorySpi.engineGetKeySpec implementations. In most cases, the requested KeySpec is equal to the concrete implementation so the inversion does not matter. But there are few cases, as presented in the added jtreg test, will cause unexpected behavior (e.g., ClassCastException rather than an InvalidKeySpecException). The fix is trivial.
This pull request has been closed without being integrated.
-------------
PR:
https://git.openjdk.java.net/jdk/pull/2681