Uploaded image for project: 'Corda'
  1. CORDA-1497

Unable to evolve enums with series of additions and then rename

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Severity:
      Medium
    • Target Version/s:
    • Feature Team:
      Corda Core
    • Sprint:

      Description

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

      java.io.NotSerializableException: Unknown enum constant E
      
          at net.corda.serialization.internal.amqp.TransformTypes$EnumDefault.validate(TransformTypes.kt:49)
          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.multiOperations(EnumEvolveTests.kt:299)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Dominic.Fox Dominic.Fox@r3.com
                Reporter:
                shams.asari Shams Asari
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: