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

Incorrect exception is thrown when creating a buff strategy with unsupported FlipContents, NODDRAW

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 5.0
    • client-libs
    • 2d
    • Fix Understood
    • x86
    • windows_xp

      GraphicsConfiguration's buffer capabilities returns false for isPageFlipping() and returns null for getFlipContents() on Win32 platforms with noddraw=true. I am trying to create a new buffer strategy by passing no. of buffers as 2 and a BufCap object with FlipContents set to PRIOR. This throws an AWT Exception since page flipping is not supported.

      The exception says 'The requested operation is supported only on FullScreen exclusive mode'. This is misleading since my application is already in FS mode (GD.isFullScreenSupported() returns true). The exception should say the specified FlipContent is not supported.

      This is noticed on WinXP with Mustang-b83 as well as Tiger. This occurs only on NODDRAW and works fine DDRAW.

      I have attached a sample test which reproduces the above behavior.

            tdv Dmitri Trembovetski (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: