RFR: 8281523: Accessibility: Conversion from string literal loses const qualifier

Daniel Jeliński djelinski at openjdk.java.net
Mon Feb 14 13:09:10 UTC 2022


On Tue, 8 Feb 2022 11:41:16 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

> This patch fixes jdk.accessibility compilation under VisualStudio 2019 with /Zc:strictStrings enabled.
> 
> Strict string handling is already enabled in GCC and Clang. With some effort we should be able to enable it in MSVC as well.

Hi, can I get a review for this change? 
This is similar to #7379, but in a different subcomponent (Accessibility vs. AWT). I added `const` qualifier to a bunch of function parameters.

Additionally I removed one (unused) function and one (mismatching) function declaration; build passed, tier1 and tier2 green. Verified with both vs2019 and vs2017.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7380



More information about the client-libs-dev mailing list