RFR: 8366733: Re-examine older java.text NF, DF, and DFS serialization tests
Justin Lu
jlu at openjdk.org
Fri Sep 5 16:41:10 UTC 2025
On Fri, 5 Sep 2025 16:13:50 GMT, Naoto Sato <naoto at openjdk.org> wrote:
> Although the existing tests are old and not run, I think the existing data can be reused. You can create overload for `deSer()` for these and test them. I believe they are the real serialized objects from the older releases, so I believe testing them still have value.
The new tests mock these streams so that we could do away with relying on the hex dump files (which required a user to navigate to the unused save file to determine how the stream was created). What is being tested should be the same for the mocked stream and the original stream itself. However, if it is desirable to test the exact streams from older releases, I can bring the data files back and test their streams directly.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27108#issuecomment-3258986668
More information about the core-libs-dev
mailing list