-
Bug
-
Resolution: Unresolved
-
P4
-
5.0
-
generic
-
generic
Name: vi140966 Date: 08/10/2004
The specification of constructor public
RenderingHints(RenderingHints.Key key, java.lang.Object value)
allows to set values which are not appropriate for the specified key.
However other methods (put,putAll) don't permit
such operations. So it is possible to make object with
pair RenderingHints.KEY_ALPHA_INTERPOLATION, "Any string" for example.
And the get method retrieve this incorrect value "Any string" for the
key RenderingHints.KEY_ALPHA_INTERPOLATION.
This is inconsistency with the specification for put methods.
======================================================================
The specification of constructor public
RenderingHints(RenderingHints.Key key, java.lang.Object value)
allows to set values which are not appropriate for the specified key.
However other methods (put,putAll) don't permit
such operations. So it is possible to make object with
pair RenderingHints.KEY_ALPHA_INTERPOLATION, "Any string" for example.
And the get method retrieve this incorrect value "Any string" for the
key RenderingHints.KEY_ALPHA_INTERPOLATION.
This is inconsistency with the specification for put methods.
======================================================================