This commit is contained in:
Mark Harrah 2011-05-23 18:40:03 -04:00
parent 41667f9f49
commit e88589c158
4 changed files with 13 additions and 2 deletions

View File

@ -0,0 +1,3 @@
package test;
public class Success {}

View File

@ -0,0 +1,3 @@
package test;
public class Fail {

View File

@ -0,0 +1,5 @@
> compile
$ copy changes/Fail.java src/main/java/Fail.java
-> compile

View File

@ -20,12 +20,12 @@ class BufferedLogger(delegate: AbstractLogger) extends BasicLogger
/** Enables buffering. */
def record() = synchronized { recording = true }
def buffer[T](f: => T): T = synchronized {
def buffer[T](f: => T): T = {
record()
try { f }
finally { stopQuietly() }
}
def bufferQuietly[T](f: => T): T = synchronized {
def bufferQuietly[T](f: => T): T = {
record()
try
{