mirror of
https://github.com/corda/corda.git
synced 2025-06-17 14:48:16 +00:00
rpc-kryo: Kryo register hidden jar url inputstream class
This commit is contained in:
@ -41,9 +41,7 @@ import org.slf4j.LoggerFactory
|
|||||||
import rx.Notification
|
import rx.Notification
|
||||||
import rx.Observable
|
import rx.Observable
|
||||||
import java.io.BufferedInputStream
|
import java.io.BufferedInputStream
|
||||||
import java.io.InputStream
|
|
||||||
import java.time.Instant
|
import java.time.Instant
|
||||||
import java.time.LocalDateTime
|
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
/** Global RPC logger */
|
/** Global RPC logger */
|
||||||
@ -146,6 +144,7 @@ private class RPCKryo(observableSerializer: Serializer<Observable<Any>>? = null)
|
|||||||
ImmutableMultimapSerializer.registerSerializers(this)
|
ImmutableMultimapSerializer.registerSerializers(this)
|
||||||
|
|
||||||
register(BufferedInputStream::class.java, InputStreamSerializer)
|
register(BufferedInputStream::class.java, InputStreamSerializer)
|
||||||
|
register(Class.forName("sun.net.www.protocol.jar.JarURLConnection\$JarURLInputStream"), InputStreamSerializer)
|
||||||
|
|
||||||
noReferencesWithin<WireTransaction>()
|
noReferencesWithin<WireTransaction>()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user