-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Support zip64 jars #16091
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support zip64 jars #16091
Conversation
9535b06
to
2fb1808
Compare
if (isZip64()) { | ||
return this.zip64End.get().getNumberOfRecords(); | ||
} | ||
else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of the return, you don't need an else {} statement
if (isZip64()) { | ||
return this.zip64End.get().getCentratDirectory(data); | ||
} | ||
else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of the return, you don't need an else {} statement
} | ||
|
||
@Test | ||
public void zip64ArchivesAreHandledGracefully() throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test name case should be renamed as it's not longer checking for an exception
} | ||
} | ||
|
||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test name case should be renamed as it's not longer checking for an exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i renamed it
2fb1808
to
59bf72a
Compare
# Conflicts: # spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/CentralDirectoryEndRecord.java
Thanks very much for the PR, @cvienot. Zip64 was one of our oldest outstanding feature requests so it's great to finally have support for it. Thanks again! |
Closes gh-2895
Add support for zip64 jars by parsing zip64 specific records, to read correct number of files, offsets and sizes