Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8311113

Remove invalid pointer cast and clean up setLabel() in awt_MenuItem.cpp

    XMLWordPrintable

Details

    • b16
    • windows

    Description

      Reported by Clang:

      src\java.desktop\windows\native\libawt\windows\awt_MenuItem.cpp(712,22): warning: cast to 'unsigned short *' from smaller integer type 'WCHAR' (aka 'unsigned short') [-Wint-to-pointer-cast]
          mii.dwTypeData = (LPTSTR)(*sb);
                           ^~~~~~~~~~~~~

      Attachments

        Issue Links

          Activity

            People

              honkar Harshitha Onkar
              djelinski Daniel Jelinski
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: