commit | 8885931d822d4f75d90aab25cf386fe4c82ba45e | [log] [tgz] |
---|---|---|
author | Guillaume Nodet <gnodet@apache.org> | Fri Nov 29 16:05:13 2013 +0000 |
committer | Guillaume Nodet <gnodet@apache.org> | Fri Nov 29 16:05:13 2013 +0000 |
tree | 7909c375115af0af95c22b717eac5b7670a749e2 | |
parent | 7501d577162996b8edf514db411d3a358293abce [diff] |
[FELIX-4336] Fix unit tests git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1546592 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadIOImpl.java b/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadIOImpl.java index bf50878..f29fd5a 100644 --- a/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadIOImpl.java +++ b/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/threadio/ThreadIOImpl.java
@@ -116,7 +116,17 @@ assert out != null; assert err != null; checkIO(); // derek - Marker marker = new Marker(in, out, err, current.get()); + Marker prev = current(); + if (in == this.in) { + in = prev.getIn(); + } + if (out == this.out) { + out = prev.getOut(); + } + if (err == this.err) { + err = prev.getErr(); + } + Marker marker = new Marker(in, out, err, prev); this.current.set(marker); } }