Skip to content

[JENKINS-52534] java8 time classes cannot be sent between master and slave #19898

Closed

Description

@jenkins-infra-bot

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: #3542

 

 


Originally reported by mbickel, imported from: java8 time classes cannot be sent between master and slave
  • assignee: oleg_nenashev
  • status: Resolved
  • priority: Minor
  • component(s): core
  • label(s): 2.121.3-fixed, JEP-200
  • resolution: Fixed
  • resolved: 2018-07-22T11:13:54+00:00
  • votes: 0
  • watchers: 2
  • imported: 2025-11-24
Raw content of original issue

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: #3542

 

 

1 attachment

Activity

  1. jenkins-infra-bot commented on Jul 13, 2018

    @jenkins-infra-bot
    Author
    oleg_nenashev:

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions