We're updating the issue view to help you get more done. 

Cycle error with enum renames

Description

The test resources for net.corda.serialization.internal.amqp.EnumEvolveTests#deserializeWithRename need regenerating but that's not possible as the following error occurs if you follow the regen steps:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 java.io.NotSerializableException: Cyclic renames are not allowed (XX) at net.corda.serialization.internal.amqp.TransformTypes$Rename.validate(TransformTypes.kt:90) at net.corda.serialization.internal.amqp.TransformsSchema$Companion$get$1.apply(TransformsSchema.kt:224) at net.corda.serialization.internal.amqp.TransformsSchema$Companion$get$1.apply(TransformsSchema.kt:192) at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) at net.corda.serialization.internal.amqp.TransformsSchema$Companion.get(TransformsSchema.kt:203) at net.corda.serialization.internal.amqp.TransformsSchema$Companion.getAndAdd(TransformsSchema.kt:241) at net.corda.serialization.internal.amqp.TransformsSchema$Companion.build(TransformsSchema.kt:258) at net.corda.serialization.internal.amqp.SerializationOutput$_serialize$1$1.invoke(SerializationOutput.kt:73) at net.corda.serialization.internal.amqp.SerializationOutput$_serialize$1$1.invoke(SerializationOutput.kt:27) at net.corda.serialization.internal.amqp.SerializationHelperKt.withList(SerializationHelper.kt:409) at net.corda.serialization.internal.amqp.SerializationOutput$_serialize$1.invoke(SerializationOutput.kt:69) at net.corda.serialization.internal.amqp.SerializationOutput$_serialize$1.invoke(SerializationOutput.kt:27) at net.corda.serialization.internal.amqp.SerializationHelperKt.withDescribed(SerializationHelper.kt:398) at net.corda.serialization.internal.amqp.SerializationOutput._serialize$serialization_main(SerializationOutput.kt:68) at net.corda.serialization.internal.amqp.testutils.AMQPTestUtilsKt.serialize(AMQPTestUtils.kt:63) at net.corda.serialization.internal.amqp.EnumEvolveTests.deserializeWithRename(EnumEvolveTests.kt:171) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Status

Assignee

Anthony Keenan

Reporter

Shams Asari

Labels

Affected OS

None

Severity

Medium

Target Version/s

R3 Corda 3.0 GA
Corda 3.3

Feature Team

Corda Core

Fix versions

Priority

Medium