diff --git a/build.gradle b/build.gradle index d04a22fa..658b9952 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ import java.util.zip.ZipFile apply plugin: 'java' apply plugin: 'maven' -version="2.32" +version="2.33" targetCompatibility = 1.7 sourceCompatibility = 1.7 diff --git a/pom.xml b/pom.xml index 9e50089e..f9e1b806 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ 4.0.0 de.ruedigermoeller fst - 2.32 + 2.33 a fast java serialization drop in-replacement + some serialization based utils (Structs, OffHeap Memory) https://code.google.com/p/fast-serialization/ diff --git a/src/main/java/org/nustaq/serialization/FSTConfiguration.java b/src/main/java/org/nustaq/serialization/FSTConfiguration.java index d829a4cf..0ca3df41 100644 --- a/src/main/java/org/nustaq/serialization/FSTConfiguration.java +++ b/src/main/java/org/nustaq/serialization/FSTConfiguration.java @@ -853,7 +853,7 @@ protected FSTObjectInput getIn() { protected FSTObjectOutput getOut() { FSTObjectOutput fstOut = (FSTObjectOutput) streamCoderFactory.getOutput().get(); - if ( fstOut == null ) { + if ( fstOut == null || fstOut.closed ) { streamCoderFactory.getOutput().set(new FSTObjectOutput(this)); return getOut(); }