-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 11, 17, 19, 20
-
Component/s: hotspot
-
b25
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8371129 | 17.0.18 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
After JDK-8294314, we would have templateTable.cpp excluded with cast-function-type warning. The underlying cause for it is casting functions for `ldc` bytecodes, which take `bool`-typed handlers:
```
/home/shade/trunks/jdk/src/hotspot/share/interpreter/templateTable.cpp:206:29: error: cast between incompatible function types from 'void (*)(bool)' to 'Template::generator' {aka 'void (*)(int)'} [-Werror=cast-function-type]
206 | def(code, flags, in, out, (Template::generator)gen, (int)arg);
```
We can make the handling more explicit.
```
/home/shade/trunks/jdk/src/hotspot/share/interpreter/templateTable.cpp:206:29: error: cast between incompatible function types from 'void (*)(bool)' to 'Template::generator' {aka 'void (*)(int)'} [-Werror=cast-function-type]
206 | def(code, flags, in, out, (Template::generator)gen, (int)arg);
```
We can make the handling more explicit.
- backported by
-
JDK-8371129 Fix cast-function-type warning in TemplateTable
-
- Resolved
-
- relates to
-
JDK-8294314 Minimize disabled warnings in hotspot
-
- Resolved
-
- links to
-
Commit
openjdk/jdk/fc616588
-
Commit(master)
openjdk/jdk17u-dev/98532ee9
-
Review
openjdk/jdk/10493
-
Review(master)
openjdk/jdk17u-dev/4127
(1 links to)