Fix -Wconversion warnings in jvmti code

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 22
    • Affects Version/s: 22
    • Component/s: hotspot
    • b05

      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

            Assignee:
            Coleen Phillimore
            Reporter:
            Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: