harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shipilov, Alexander D" <alexander.d.shipi...@intel.com>
Subject [classlib][awt] RenderingHints.Key.isCompatibleValue(). Method sence.
Date Mon, 11 Dec 2006 10:52:41 GMT
Hi, folks,
 I found a JIRA http://issues.apache.org/jira/browse/HARMONY-2066.
Essence of this JIRA is a too hard restriction imposed by a method
RenderingHints.Key.isCompatibleValue(Object value).

Spec says about this method:
 "Returns true if the specified object is a valid value for this Key."
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/RenderingHints.Key.html
#isCompatibleValue(java.lang.Object)

Harmony implements this method in a following way. It returns true only
if the value is an instance of the Key. Why it so?
RI returns true in any case, even if the value is just Object, even if
the value is null.

Should we decrease restriction imposed by this method?

Thanks,
Alexander Shipilov

Mime
View raw message