You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2019/07/23 19:12:50 UTC

[GitHub] [netbeans] matthiasblaesing commented on issue #1328: HashMap is not thread safe. Field map is typically synchronized by this. However, in two places, field map is not protected with synchronized.

matthiasblaesing commented on issue #1328: HashMap is not thread safe. Field map is typically synchronized by this. However, in two places, field map is not protected with synchronized.
URL: https://github.com/apache/netbeans/pull/1328#issuecomment-514344519
 
 
   Switching to `Collections#synchronizedMap` would alter the semantics -- the synchronisation covers more than just the access to the map, but also the serialization of it (see `write`). So this is the minimal invasive change, but I agree, the class might need some love.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists