JVMTI code in jvmtiClassFileReconstitutor and jvmtiRedefineClasses narrows ints into u2's to match fields in the constant pool.
These get -Wconversion warnings when implicitly narrowed.
When compiling with -Wconversion without -Werror, this was the count of occurrences in these files.
34 src/hotspot/share/prims/jvmtiClassFileReconstituter.cpp
25 src/hotspot/share/prims/jvmtiRedefineClasses.cpp
4 src/hotspot/share/prims/jvmtiEnvBase.cpp
2 src/hotspot/share/prims/jvmtiTrace.cpp
2 src/hotspot/share/prims/jvmtiTagMapTable.hpp
2 src/hotspot/share/prims/jvmtiRawMonitor.cpp
1 src/hotspot/share/prims/jvmtiManageCapabilities.cpp
1 src/hotspot/share/prims/jvmtiExport.cpp
1 src/hotspot/share/prims/jvmtiEnvThreadState.cpp
1 src/hotspot/share/prims/jvmtiCodeBlobEvents.cpp