#665 Unsynchronized methods in AttachmentModel

v1.0
open
nobody
ui (143)
5
2005-11-02
2005-11-02
Jay Zuckerman
No

The class
"org.columba.mail.gui.message.viewer.AttachmentModel"
contains synchronized methods for setting two of its
fields,
"setFolder()" and "setUid()".

However the corresponding "getFolder" and "getUid"
fields are not synchronized, which could lead to
inconsistent behaviors at runtime if multiple threads
can observe different object states. These two methods
should be made synchronized.

I have attached a modified version of
AttachmentModel.java with the methods made synchronized.

Discussion

  • Jay Zuckerman
    Jay Zuckerman
    2005-11-02

    Attachment Model with synchronized get() methods

     
    Attachments