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

Container.getFocusTraversalPolicy() does not define return value if no ancestor exists

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • 6
    • client-libs
    • Cause Known
    • x86
    • windows_2000

      The J2SE 5.0 spec states for public FocusTraversalPolicy getFocusTraversalPolicy():
        "Returns the focus traversal policy that will manage keyboard traversal of this Container's
         children, or null if this Container is not a focus cycle root. If no traversal policy has
         been explicitly set for this Container, then this Container's focus-cycle-root ancestor's
         policy is returned."

      The spec does not describe one more case when the container has no ancestor.
      What to expect as a return value: null or KFM.getDefaultFocusTraversalPolicy()?

      There are two places in the spec which need to be updated:
        java/awt/Container.html#getFocusTraversalPolicy()
        java/awt/doc-files/FocusSpec.html#FocusTraversalPolicy

      ###@###.### 2005-04-19 14:41:43 GMT

            ant Anton Tarasov (Inactive)
            visaenko Vasily Isaenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: