RFR: 8279800: isAssignableFrom checks in AlgorithmParametersSpi.engineGetParameterSpec appear to be backwards
Valerie Peng
valeriep at openjdk.java.net
Wed Jan 12 19:59:29 UTC 2022
On Wed, 12 Jan 2022 19:49:28 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> Interesting... In hindsight, the cast call sort of confirms that the intended ordering is the suggested one.
>
> The check ensures casting always succeeds. The fact that this has not been noticed for such a long time means everyone is using the exact subclass type when calling the method.
Right, I suppose so.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7037
More information about the security-dev
mailing list