Testing Race Conditions in Java

«Can you spot the bug in the following piece of Java code? /** Maintains a list of names. */ public class NameManager {   private List<String> names = new ArrayList<String>();   /** Stor…»   » source  |  + cache
 

See original post by Chris Gilmer