- 
    Enhancement 
- 
    Resolution: Fixed
- 
     P4 P4
- 
    11, 17, 19, 20
- 
        b25
                    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.
- relates to
- 
                    JDK-8294314 Minimize disabled warnings in hotspot -           
- Resolved
 
-         
- links to
- 
                     Commit
        openjdk/jdk/fc616588 Commit
        openjdk/jdk/fc616588
- 
                     Review
        openjdk/jdk/10493 Review
        openjdk/jdk/10493
- 
                     Review(master)
        openjdk/jdk17u-dev/4127 Review(master)
        openjdk/jdk17u-dev/4127