RFR: 8303764: sunmscapi.dll cannot compile under permissive-
Weijun Wang
weijun at openjdk.org
Wed Mar 8 13:23:13 UTC 2023
On Tue, 7 Mar 2023 17:27:56 GMT, Julian Waters <jwaters at openjdk.org> wrote:
> security.cpp contains a few invalid implicit conversions between pointer types that will not fly when the permissive- compiler option is active. Given that permissive- will become the Visual C++ compiler's default mode of operation in the future, it is better to handle this now so future compiler upgrades will not cause issues. Problems here are very easily solved with explicit casts
Thanks for taking care of this. The code change looks innocent. I'm just wondering if this problem only happens in this file or there are similar changes needed in other files. If yes, I hope the change is consistent. For example, instead of casting to `jchar*`, is it possible to declare the variable to be `jchar*` at the beginning? I understand there might be other casts needed.
-------------
PR: https://git.openjdk.org/jdk/pull/12907
More information about the security-dev
mailing list