-
Enhancement
-
Resolution: Fixed
-
P4
-
19
-
b10
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8370219 | 17.0.18-oracle | Joakim Nordström | P4 | Resolved | Fixed | b03 |
| JDK-8370591 | 17.0.18 | Goetz Lindenmaier | P4 | Resolved | Fixed | master |
Compiling OpenJDK with Visual Studio 2019 and with -Zc:strictStrings flag enabled produces a few compilation errors.
String literal to non-const pointer conversion, when used incorrectly, may result in runtime errors. Using Zc:strictStrings forces users to either use const pointers, or use explicit conversion, which is easier to spot and review.
GCC and Clang already warn on this conversion in all C++ code.
String literal to non-const pointer conversion, when used incorrectly, may result in runtime errors. Using Zc:strictStrings forces users to either use const pointers, or use explicit conversion, which is easier to spot and review.
GCC and Clang already warn on this conversion in all C++ code.
- backported by
-
JDK-8370219 AWT: Conversion from string literal loses const qualifier
-
- Resolved
-
-
JDK-8370591 AWT: Conversion from string literal loses const qualifier
-
- Resolved
-
- relates to
-
JDK-8281525 Enable Zc:strictStrings flag in Visual Studio build
-
- Resolved
-
- links to
-
Commit
openjdk/jdk/f924e50c
-
Commit(master)
openjdk/jdk17u-dev/29527217
-
Review
openjdk/jdk/7379
-
Review(master)
openjdk/jdk17u-dev/4078
(2 links to)