RFR: JDK-8077371: Binary files in JAXP test should be removed [v3]

Daniel Fuchs dfuchs at openjdk.org
Thu Apr 20 16:22:43 UTC 2023


On Thu, 20 Apr 2023 16:06:36 GMT, Lance Andersen <lancea at openjdk.org> wrote:

> The original version of this test was validating serialization compatibility with previous releases.
> 
> The current changes seems to have removed that validation in the re-write of the test
> 
> One option is to convert the various *.ser files to a byte array and have the test write them out or read them from a stream to do the validation

Good point. You can also base64-encode the bytes into a string - here is an example:
https://github.com/openjdk/jdk/blob/master/test/jdk/java/util/logging/HigherResolutionTimeStamps/SerializeLogRecord.java

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13537#issuecomment-1516611679


More information about the core-libs-dev mailing list