diff --git a/nuts-core/nb-configuration.xml b/nuts-core/nb-configuration.xml
index 5b0f1f839..80c97dd0a 100644
--- a/nuts-core/nb-configuration.xml
+++ b/nuts-core/nb-configuration.xml
@@ -14,5 +14,6 @@ That way multiple projects can share the same settings (useful for formatting ru
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
true
+ JDK_1.8
diff --git a/nuts-core/src/main/java/net/vpc/app/nuts/core/DefaultNutsIOManager.java b/nuts-core/src/main/java/net/vpc/app/nuts/core/DefaultNutsIOManager.java
index b27cee1cf..d61dce0c0 100644
--- a/nuts-core/src/main/java/net/vpc/app/nuts/core/DefaultNutsIOManager.java
+++ b/nuts-core/src/main/java/net/vpc/app/nuts/core/DefaultNutsIOManager.java
@@ -16,6 +16,7 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
+import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;
import java.util.logging.Level;
@@ -479,8 +480,11 @@ public PrintStream createPrintStream(OutputStream out, NutsTerminalMode mode) {
return createPrintStream(((NutsFormatFilteredPrintStream) out).getUnformattedInstance(), mode);
}
//return new NutsDefaultFormattedPrintStream(out);
+ HashMap m=new HashMap<>();
+ m.put("workspace", this);
+ m.put("out", out);
return (PrintStream) ws.extensions().createSupported(NutsFormattedPrintStream.class,
- Map.of("workspace", this, "out", out),
+ m,
new Class[]{OutputStream.class}, new Object[]{out});
}
case FILTERED: {
@@ -491,8 +495,11 @@ public PrintStream createPrintStream(OutputStream out, NutsTerminalMode mode) {
return createPrintStream(((NutsFormattedPrintStream) out).getUnformattedInstance(), mode);
}
//return new NutsDefaultFormattedPrintStream(out);
+ HashMap m=new HashMap<>();
+ m.put("workspace", this);
+ m.put("out", out);
return (PrintStream) ws.extensions().createSupported(NutsFormatFilteredPrintStream.class,
- Map.of("workspace", this, "out", out),
+ m,
new Class[]{OutputStream.class}, new Object[]{out});
}
case INHERITED: {