groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject incubator-groovy git commit: GROOVY-4888 - fix so child threads output/err streams go to correct console (closes #161)
Date Mon, 26 Oct 2015 18:46:54 GMT
Repository: incubator-groovy
Updated Branches:
  refs/heads/master beb36c8b2 -> d1979d119


GROOVY-4888 - fix so child threads output/err streams go to correct console (closes #161)


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/d1979d11
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/d1979d11
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/d1979d11

Branch: refs/heads/master
Commit: d1979d119f805f721600c114466311b928c4c587
Parents: beb36c8
Author: John Wagenleitner <john.wagenleitner@gmail.com>
Authored: Sun Oct 25 16:55:42 2015 -0700
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Mon Oct 26 19:46:17 2015 +0100

----------------------------------------------------------------------
 .../src/main/groovy/groovy/ui/SystemOutputInterceptor.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/d1979d11/subprojects/groovy-console/src/main/groovy/groovy/ui/SystemOutputInterceptor.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-console/src/main/groovy/groovy/ui/SystemOutputInterceptor.java
b/subprojects/groovy-console/src/main/groovy/groovy/ui/SystemOutputInterceptor.java
index 7f47d8e..e294bb8 100644
--- a/subprojects/groovy-console/src/main/groovy/groovy/ui/SystemOutputInterceptor.java
+++ b/subprojects/groovy-console/src/main/groovy/groovy/ui/SystemOutputInterceptor.java
@@ -32,7 +32,7 @@ public class SystemOutputInterceptor extends FilterOutputStream {
     private Closure callback;
     private boolean output;
 
-    private static final ThreadLocal<Integer> consoleId = new ThreadLocal<Integer>()
{
+    private static final ThreadLocal<Integer> consoleId = new InheritableThreadLocal<Integer>()
{
         @Override
         protected Integer initialValue() {
             return Integer.valueOf(0);


Mime
View raw message