-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.4.0
-
None
-
generic
-
generic
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.
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.
- duplicates
-
JDK-4422535 AccessibleValue implementation only accept Integers
-
- Resolved
-