You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-52534] java8 time classes cannot be sent between master and slave #19898
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.
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.
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.
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.
Activity
jenkins-infra-bot commentedon Jul 13, 2018
Raw content of original 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.