RFR: JDK-8291974 PrivateCredentialPermission should not use local variable to enable debugging
Weijun Wang
weijun at openjdk.org
Thu Sep 15 20:08:05 UTC 2022
On Wed, 7 Sep 2022 19:49:53 GMT, Mark Powers <mpowers at openjdk.org> wrote:
> https://bugs.openjdk.org/browse/JDK-8291974
I've added my name as a reviewer of the CSR.
As for the test, I think it makes sense to serialize the object in an old JDK, hardcode the bytes in a new test and try to deserialize it, and make sure it equals to an object that is freshly constructed.
For the opposite direction, one can write a test in the JDK 17 repo that deserializes a byte array "from the future". This sounds fascinating but probably not worth doing.
-------------
PR: https://git.openjdk.org/jdk/pull/10206
More information about the security-dev
mailing list