Merge pull request #54 from corda/aslemmer-fix-trader-demo-jarurlinputstream

rpc-kryo: Kryo register hidden jar url inputstream class
This commit is contained in:
Andras Slemmer 2016-12-13 12:17:58 +00:00 committed by GitHub
commit e198a93b4d

View File

@ -41,9 +41,7 @@ import org.slf4j.LoggerFactory
import rx.Notification
import rx.Observable
import java.io.BufferedInputStream
import java.io.InputStream
import java.time.Instant
import java.time.LocalDateTime
import java.util.*
/** Global RPC logger */
@ -146,6 +144,7 @@ private class RPCKryo(observableSerializer: Serializer<Observable<Any>>? = null)
ImmutableMultimapSerializer.registerSerializers(this)
register(BufferedInputStream::class.java, InputStreamSerializer)
register(Class.forName("sun.net.www.protocol.jar.JarURLConnection\$JarURLInputStream"), InputStreamSerializer)
noReferencesWithin<WireTransaction>()