Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-2275

SerializableCoder fails to serialize when used with a generic type token

Details

    • Bug
    • Status: Resolved
    • P0
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • sdk-java-core

    Description

      The following code throws that the type descriptor is not serializable

      SerializableCoder<T> coder = SerializableCoder.of(new TypeDescriptor<T>(){});
      CoderProperties.ensureSerializable(coder);
      

      This is a regression since 0.6.0 since the type descriptor was never serialized before.

      Attachments

        1. SerTest.java
          2 kB
          Luke Cwik
        2. stacktrace.txt
          3 kB
          Luke Cwik

        Activity

          People

            tgroh Thomas Groh
            lcwik Luke Cwik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: