With anti samy, there is no thread safe way to create a policy file. The
Policy.getInstance(...) methods all read/write from the private _instance
variable without synchronization. If two threads are creating policy files
(even with the same file/filename) there is potential for conflict, see
http://www.ibm.com/developerworks/java/library/j-dcl.html , in particular
the section on out of order writes.
I think the _instance variable in Policy can be removed altogether.
Original issue reported on code.google.com by sean.bri...@gmail.com on 22 Jun 2009 at 8:50
Original issue reported on code.google.com by
sean.bri...@gmail.com
on 22 Jun 2009 at 8:50