Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52534

java8 time classes cannot be sent between master and slave

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      Jenkins 2.132

      Description

      The java.time.* classes introduced with Java 8 use java.time.Ser to serialize/deserialize them.

      As a plugin developer, when I try to transfer java.time.Instant objects, I get the attached stacktrace.

      While I can add this class to my own plugin's hudson.remoting.ClassFilter , the instructions at https://jenkins.io/blog/2018/01/13/jep-200/ tell me to create a PullRequest if the class is defined in Java Platform.

      Here it is: https://github.com/jenkinsci/jenkins/pull/3542

       

       

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          The class is specifically designed for serialization according to http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/classes/java/time/Ser.java 

          Permitting it looks good to me. Note that the class contains an "Object" field, so it will be a responsibility of the API user and implementation to use it correctly.

          Show
          oleg_nenashev Oleg Nenashev added a comment - The class is specifically designed for serialization according to http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/share/classes/java/time/Ser.java   Permitting it looks good to me. Note that the class contains an "Object" field, so it will be a responsibility of the API user and implementation to use it correctly.

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              mbickel Martin Bickel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: