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

Compilation errors in Java AccessBridge with VS2017

XMLWordPrintable

      Sergey reported that
      While working on JDK-8198895 in the current java client i also got these warnings in jdk.accessibility:

      #bash jib.sh configure -- --enable-openjdk-only --disable-warnings-as-errors && make images

      Creating support/modules_libs/jdk.accessibility/javaaccessbridge.dll from 5 file(s)
      Creating support/modules_libs/jdk.accessibility/windowsaccessbridge-64.dll from 7 file(s)
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/AccessBridgeATInstance.cpp(150): warning C4312: 'type cast': conversion from 'DWORD' to 'void *' of greater size
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/AccessBridgeATInstance.cpp(200): warning C4311: 'type cast': pointer truncation from 'EVENT_STRUCT *' to 'DWORD'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/AccessBridgeATInstance.cpp(200): warning C4302: 'type cast': truncation from 'EVENT_STRUCT *' to 'DWORD'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(1729): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(1729): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(1784): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(1784): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(1870): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(1870): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(1954): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(1954): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2007): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2007): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2091): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2091): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2144): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2144): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2227): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2227): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2279): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2279): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2337): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2337): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2395): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2395): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2524): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2524): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2538): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2538): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2539): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2539): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2540): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2540): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2541): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2541): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2542): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2542): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2543): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2543): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2544): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2544): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2545): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2545): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2546): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2546): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2547): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2547): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2548): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2548): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2549): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2549): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2550): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2550): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2551): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2551): warning C4302: 'type cast': truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2722): warning C4312: 'type cast': conversion from 'jint' to 'void *' of greater size
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2765): warning C4311: 'type cast': pointer truncation from 'HWND' to 'jint'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/JavaAccessBridge.cpp(2765): warning C4302: 'type cast': truncation from 'HWND' to 'jint'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libjavaaccessbridge/AccessBridgeJavaEntryPoints.cpp(959): warning C4312: 'type cast': conversion from 'jint' to 'HWND' of greater size
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libwindowsaccessbridge/WinAccessBridge.cpp(181): warning C4312: 'type cast': conversion from 'UINT' to 'HWND' of greater size
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libwindowsaccessbridge/WinAccessBridge.cpp(185): warning C4312: 'type cast': conversion from 'LONG' to 'COPYDATASTRUCT *' of greater size
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libwindowsaccessbridge/WinAccessBridge.cpp(223): warning C4312: 'type cast': conversion from 'UINT' to 'HWND' of greater size
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libwindowsaccessbridge/WinAccessBridge.cpp(232): warning C4312: 'type cast': conversion from 'UINT' to 'HWND' of greater size
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libwindowsaccessbridge/WinAccessBridge.cpp(863): warning C4311: 'type cast': pointer truncation from 'HWND' to 'jint'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libwindowsaccessbridge/WinAccessBridge.cpp(863): warning C4302: 'type cast': truncation from 'HWND' to 'jint'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libwindowsaccessbridge/WinAccessBridge.cpp(968): warning C4311: 'type cast': pointer truncation from 'HWND' to 'jint'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libwindowsaccessbridge/WinAccessBridge.cpp(968): warning C4302: 'type cast': truncation from 'HWND' to 'jint'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libwindowsaccessbridge/WinAccessBridge.cpp(1130): warning C4311: 'type cast': pointer truncation from 'HWND' to 'long'
      c:/moe/ws/jdk/work/open/src/jdk.accessibility/windows/native/libwindowsaccessbridge/WinAccessBridge.cpp(1130): warning C4302: 'type cast': truncation from 'HWND' to 'long'

            Unassigned Unassigned
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: