DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20740>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20740

Map.debugPrint assume key is string.





------- Additional Comments From [EMAIL PROTECTED]  2003-06-13 17:35 -------

I'm attaching three patches....

1) TestMapUtilsPatch - test case to capture the error condition -
   ClassCastException if the map key is anything but a string.  

2) MapUtilsFixPatch - makes the following changes to MapUtils:
   A) Refactor common code from debupPrint and verbosePrint
   B) Remove the cast to String
   C) Rename "key" argument to debugPrint and verbosePrint as "label".  
      Paramter comment is updated appropriately.  

3) MapUtilsBehaviourPatch - changes behaviour of debug print
   A) Previously, debug print showed class names for any object values in the 
      map argument.  Any nested maps, however, although printed, were not 
      similarly treated.  Now the "debug" nature of the call propagates to 
      all nested maps - class names for values are always printed.  
   B) Debug print now also prints the class name of any nested map after the 
      map itself has been expanded - again, this is in line with the behaviour
      of debug print with any other type of value within the outer map.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to