Made to ForkMain's write method synchronized, to ensure the output stream won't corrupt when test framework implementation uses multi-threads to write event back to sbt.

This commit is contained in:
cheeseng 2013-04-05 15:55:17 +08:00
parent b83d378cd0
commit b2b9fb132a
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ public class ForkMain {
class RunAborted extends RuntimeException {
RunAborted(Exception e) { super(e); }
}
void write(ObjectOutputStream os, Object obj) {
synchronized void write(ObjectOutputStream os, Object obj) {
try {
os.writeObject(obj);
os.flush();