Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix timestamp roundtripping issue #36

Merged
merged 2 commits into from
Oct 3, 2023

Conversation

johnynek
Copy link
Collaborator

@johnynek johnynek commented Oct 3, 2023

No description provided.

JarInputStream in = new JarInputStream(new ByteArrayInputStream(baos.toByteArray()));
je = in.getNextJarEntry();
long readTime = StandaloneJarProcessor.fixTimestamp(je.getTime());
//assertEquals(readTime, startTime);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably should remove this comment but: it might be interesting to add assertNotEquals(startTime, je.getTime()) so that this test fails if they fix it in the JDK and we can remove this shim.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't do that because that test will fail on any machine with UTC timezone (which i guess many CI machines would have).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yeah of course!

@johnynek johnynek merged commit cf13301 into main Oct 3, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants