-
Enhancement
-
Resolution: Fixed
-
P4
-
11, 16
-
b23
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8258580 | 11.0.11-oracle | Dukebot | P4 | Resolved | Fixed | b01 |
JDK-8258997 | 11.0.11 | Andrew Haley | P4 | Resolved | Fixed | b01 |
In many places we've added C-style casts to silence compiler warnings, for example when truncating a size_t to an int when we know the size_t is a small struct. Such casts are inherently risky, because they effectively disable useful compiler warnings. We should add a form of cast that checks at runtime that a truncation does not overflow.
- backported by
-
JDK-8258580 Create a checked cast
- Resolved
-
JDK-8258997 Create a checked cast
- Resolved
- duplicates
-
JDK-8254856 hotspot: Add checked_cast() template utility
- Closed