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

Java Access Bridge - return values should be cleared before calls from Win to Java

    XMLWordPrintable

Details

    Description

      In case there is a failure of some sort calls from the Win side to the Java side of the bridge return values should be cleared before the call so callers will not get garbage return values. This is for the case where something went wrong but there was no error code indicating there was a failure. This situation has been observed at least once so the code should be fixed for this case. An example is in jdk/src/closed/oracle.accessbridge/windoes/native/libaccessbridge/WinAccessBridge.cpp in the getParentWithRole method. When the pkg is being created add this before the memcpy:
      pkg->rAccessibleContext = 0;
      Do similar for all the methods.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ptbrunet Pete Brunet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: