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

setCurrentAccessibleValue insists on Integer when API says Number...

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • client-libs
    • None

      The documentation for the AccessibleValue.setCurrentAccessibleValue API gives
      the method the following signature:

      boolean setCurrentAccessibleValue( Number )

      In reality the current implementation ignores any subclass of Number other than
      Integer, this is inconsistent with the documentation and violates OOP.

      If the signature is a Number why cannot the "intValue()" method of Number not
      be used to extract the integer required in the implementation. Any Number
      passed in should be valid, whether it's an Integer or not, so long as it's in
      the correct range.

            lmonsantsunw Lynn Monsanto (Inactive)
            darrenk Darren Kenny
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: