RFR: 8303764: sunmscapi.dll cannot compile under permissive-
Julian Waters
jwaters at openjdk.org
Wed Mar 8 14:09:47 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
permissive- is a pretty big problem for Windows code in general, in particular our very jint and jlong typedefs themselves on Windows are completely broken on Windows and compiling with permissive- will straight up make the entire JDK explode. Change here is particular is a small part of a much bigger (JDK wide) fix, if that's what you meant by it happening in other files. I'm not sure if the code here could be redefined as a jchar from the start though, should I give it a try?
-------------
PR: https://git.openjdk.org/jdk/pull/12907
More information about the security-dev
mailing list