mirror of
https://github.com/corda/corda.git
synced 2024-12-26 08:01:09 +00:00
CORDA-3218: Align DJVM with internal Corda Serialisation API. (#68)
* Align DJVM with internal Corda Serialisation API. * Ensure we get the latest SNAPSHOT of the serialisation code.
This commit is contained in:
parent
e0ce1bd525
commit
394d503d41
@ -38,6 +38,11 @@ allprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
testRuntimeClasspath.resolutionStrategy {
|
||||||
|
// Always check the repository for a newer SNAPSHOT.
|
||||||
|
cacheChangingModulesFor 0, 'seconds'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -14,6 +14,7 @@ import java.util.*
|
|||||||
import java.util.Collections.singleton
|
import java.util.Collections.singleton
|
||||||
import java.util.Collections.unmodifiableMap
|
import java.util.Collections.unmodifiableMap
|
||||||
import java.util.function.Function
|
import java.util.function.Function
|
||||||
|
import java.util.function.Predicate
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This has all been lovingly copied from [SerializerFactoryBuilder].
|
* This has all been lovingly copied from [SerializerFactoryBuilder].
|
||||||
@ -60,6 +61,7 @@ class SandboxSerializerFactoryFactory(
|
|||||||
classloader = classLoader,
|
classloader = classLoader,
|
||||||
descriptorBasedSerializerRegistry = descriptorBasedSerializerRegistry,
|
descriptorBasedSerializerRegistry = descriptorBasedSerializerRegistry,
|
||||||
primitiveSerializerFactory = primitiveSerializerFactory,
|
primitiveSerializerFactory = primitiveSerializerFactory,
|
||||||
|
isPrimitiveType = Predicate { clazz -> clazz.isPrimitive || clazz in primitiveTypes.keys },
|
||||||
customSerializerRegistry = customSerializerRegistry,
|
customSerializerRegistry = customSerializerRegistry,
|
||||||
onlyCustomSerializers = false
|
onlyCustomSerializers = false
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user