Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.0
-
None
Description
private static int nextSerialNum = 0; private static ThreadLocal<Integer> threadLocalId = new ThreadLocal<Integer>() { @Override protected Integer initialValue() { return nextSerialNum++; } };
nextSerialNum needs to be an atomic value.