-
Improvement
-
Resolution: Fixed
-
Minor
-
-
Jenkins 2.132
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
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.