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

java.awt.Robot(GraphicsDevice) constructor does not follow the spec

XMLWordPrintable

    • b13
    • generic
    • generic

      According to the specification:
      * @throws AWTException if the platform configuration does not allow
      * low-level input control. This exception is always thrown when
      * GraphicsEnvironment.isHeadless() returns true.
      public Robot(GraphicsDevice screen) throws AWTException {

      But "AWTException" is not thrown if "GraphicsEnvironment.isHeadless() returns true."

            serb Sergey Bylokhov
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: