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

[macosx] MouseInfo.getPointerInfo() may be null after robot.mouseMove(x,y) if x,y is on secondary screen

    XMLWordPrintable

Details

    • x86
    • os_x

    Description

      Create a multi-display configuration with common coordinate system and run the attached test. It creates a Robot using the second constructor, new Robot(gd), and moves mouse with that robot somewhere not so close to the north-west corner of the each screen in turn.
      You will see in the printout that pointer info about the secondary screen is null.

      Now, if you change the test and use another Robot constructor (without parameter), that info is correct every time.

      I have OS X 10.8 and jdk 7u40 or 8 b95 but cannot say confidently it is a system-related issue.

      RULE 2D_MultiMonitor/RobotMultiScreenTest Exception java.lang.NullPointerException

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yan Yuri Nesterenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: