Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-119519

JDK-8369028: [8u] [21u] Mou

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-8.10
    • java-21-openjdk
    • Yes
    • Low
    • rhel-sst-java
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      What were you trying to do that didn't work?

      On Linux (X11 based systems), when a user clicks inside a JFrame to close an open JMenu or JPopupMenu and maintains the mouse button press to begin a drag, the subsequent MouseDragged events are incorrectly confined to the boundaries of the JFrame. The registered MouseMotionListener stops receiving events the moment the cursor moves outside the window.

      This is a regression from the expected AWT/Swing behavior, which should maintain mouse input delivery to the originating component for the duration of the drag, regardless of window boundaries. Windows exhibits the correct behavior in the same test case.

      What is the impact of this issue to you?

      We worked with Oracle to open this following bug, but need to work with Red Hat to resolve.

      https://bugs.java.com/bugdatabase/view_bug?bug_id=JDK-8369028

      Please provide the package NVR for which the bug is seen:

      java-21-openjdk-21.0.7.0.6-2.el8.x86_64  

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1.  Use the provided Java test case code (below).
      2. Run the application on a Linux system.
      3. Baseline Test (Expected Behavior):
        a. Click inside the frame content pane (press the mouse button down).
        b. Drag the cursor outside the JFrame boundary.
        c. Verify: mouseDragged messages continue to be printed to the console (Correct).
        d. Release the mouse button.
      4. Bug Reproduction Test (Failing Behavior):
        a. Click the "File" menu item to open the JMenu.
        b. Click an empty area inside the JFrame to close the menu/popup, but do not release the mouse button (maintain the press).
        c. While still pressing the mouse button, drag the cursor outside the JFrame boundary.
        d. Verify: mouseDragged messages cease immediately upon the cursor crossing the window border. (Incorrect on Linux).
      5.  

      Expected results

      Actual results

              rhn-engineering-ahughes Andrew Hughes
              rhn-support-alanm Alan Matsuoka
              Andrew Hughes Andrew Hughes
              David Kutalek David Kutalek
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: