mirror of
https://github.com/corda/corda.git
synced 2025-06-17 14:48:16 +00:00
CORDA-2099 serialisation rewrite (#4257)
* Type model first draft * Introduce TypeIdentifier * Attempting to retrofit fingerprinter with type model * Complete retrofitting typemodel to fingerprinter * Ensure component types are resolved correctly * Fixes and tests * Move resolveAgainst to TypeIdentifier * Remote type modelling and reflection * Convert TypeIdentifiers back into types * Translate AMQP type strings to type identifiers * Start replacing DeserializedParameterizedType * Start roundtripping types through AMQP serialization * Comments on type modelling fingerprinter * kdocs and interface reorganisation * Lots and lots of kdocs, bugfix for cyclic references * Separate SerializerFactory construction from concrete implementation * Fewer build methods * Method naming that doesn't fatally confuse determinisation * Extract SerializerFactory interface * Reset to master's version of compiler.xml * Un-ignore flickering test * Enums don't have superclasses * Break out custom serializer registry * Refactor to separate remote and local serializer factories * Shrink interfaces * Further interface narrowing * Fingerprinting local type model * LocalSerializerFactory uses LocalTypeInformation * Resolve wildcards to their upper bounds * Actually cache custom serializers * Fix various bugs * Remove print statements * There are no cycles in type identifiers * Drive class carpentry from RemoteTypeInformation * Refactor and comment * Comments * Comments and pretty-printer extraction * Format long methods with braces * Serialise composable types using LocalTypeInformation * Warnings if a type is non-composable * Rename lookup -> findOrBuild * Evolution serialisation (no enums yet) * Eliminate old ObjectSerializer and evolver * Enum evolution * Opacity claims types less greedily * Fix type notation and type erasure bug * Clean up unused code paths * Delete unused codepaths * Move whitelist based type model configuration to own file * Move opaque type list * Make all evolution serialisers in one go when schema received * Minor tweaks * Commenting and tidying * Comments * Rebase against master * Make flag for controlling evolution behaviour visible * propertiesOrEmptyMap * Restore error messages * Test for CORDA-4107 * PR fixes * Patch cycles in remote type information after creation * Fix line breaks in unit test on Windows * This time for sure * EvolutionSerializerFactoryTests * Fix some pretty-printing issues, and a carpenter bug * PR fixes * Clarify evolution constructor ordering * Remote TODO comment, which has been moved to a JIRA story
This commit is contained in:
@ -57,7 +57,7 @@ class InteractiveShellTest {
|
||||
}, input, FlowA::class.java, om)
|
||||
assertEquals(expected, output!!, input)
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
fun flowStartSimple() {
|
||||
check("a: Hi there", "Hi there")
|
||||
|
Reference in New Issue
Block a user