[OpenMap Users] OMScalingRaster serialization problem (UNCLASSIFIED)

From: Kacirek, Benjamin P CIV USA TRADOC <ben.kacirek_at_email.domain.hidden>
Date: Wed Jun 02 2010 - 14:45:07 EDT

Classification: UNCLASSIFIED
Caveats: NONE

Hello,
I was trying to serialize OMScalingIcons when I came across a bug with
OMScalingRaster. It kept failing when I tried to serialize the objects.
I kind of hacked together a work around. I made the "protected
BufferedImage sourceImage" transient. Then copied and pasted the
writeObject and readObject methods from OMRaster. The only change I made
to those methods was have readObject call setImage(bitmap) after reading
in the object data. I'm sure there is a better solution to this problem
than my quick fix.

Thanks,
-Ben

Classification: UNCLASSIFIED
Caveats: NONE

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Jun 2 15:04:05 2010

This archive was generated by hypermail 2.1.8 : Wed Jun 02 2010 - 15:04:06 EDT