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

(hook) The win32 awt hook code is fragile.

XMLWordPrintable

    • x86
    • windows_nt

      While investigate the Bug 4148221, I found the win32 awt native hook code is risky and fragile.

      The hook awt installed is used for detecting the mouse enter/exit event, which are not generated by win32. That piece of code contains the bug 4150851. In many cases, the Frame window is special window because it contains the non-client area. It should be treated differently.

      The other duty of the hook (maybe) is to install the input method. However it may have significant conflicts with other input method installed on the system. The code of AwtComponent::PreProcessMsg() may have potential problems.

      There is also a coding style error. The ProProcessMsg returns BOOL, and it is used to compare with mrPassAlong (an enum), see line 589 of awt_Toolkit.cpp, that makes the code confusing.

            rraysunw Richard Ray (Inactive)
            hongzh Hong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: