-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8345431: Improve jar --validate to detect duplicate or invalid entries #24430
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
Changes from all commits
cae7f6a
6114259
384905b
d56eb76
e38774a
24d0776
e0eff6e
1150fb5
1bc1f8c
da4a913
0caecfc
b0df54d
52af70a
5118aba
bf82d66
b484954
2690e69
21427ed
a0ebb6d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| # | ||
| # Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved. | ||
| # Copyright (c) 1999, 2025, Oracle and/or its affiliates. All rights reserved. | ||
| # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
| # | ||
| # This code is free software; you can redistribute it and/or modify it | ||
|
|
@@ -143,6 +143,18 @@ warn.validator.concealed.public.class=\ | |
| Warning: entry {0} is a public class\n\ | ||
| in a concealed package, placing this jar on the class path will result\n\ | ||
| in incompatible public interfaces | ||
| warn.validator.duplicate.cen.entry=\ | ||
| Warning: There were {0} central directory entries found for {1} | ||
| warn.validator.duplicate.loc.entry=\ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as for |
||
| Warning: There were {0} local file headers found for {1} | ||
| warn.validator.invalid.entry.name=\ | ||
| Warning: entry name {0} is not valid | ||
| warn.validator.cen.only.entry=\ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would change
|
||
| Warning: An equivalent for the central directory entry {0} was not found in the local file headers | ||
| warn.validator.loc.only.entry=\ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as for |
||
| Warning: An equivalent entry for the local file header {0} was not found in the central directory | ||
| warn.validator.order.mismatch=\ | ||
| Warning: Central directory and local file header entries are not in the same order | ||
| warn.release.unexpected.versioned.entry=\ | ||
| unexpected versioned entry {0} | ||
| warn.index.is.ignored=\ | ||
|
|
@@ -265,10 +277,13 @@ main.help.opt.main.extract=\ | |
| main.help.opt.main.describe-module=\ | ||
| \ -d, --describe-module Print the module descriptor, or automatic module name | ||
| main.help.opt.main.validate=\ | ||
| \ --validate Validate the contents of the jar archive. This option\n\ | ||
| \ will validate that the API exported by a multi-release\n\ | ||
| \ --validate Validate the contents of the jar archive. This option:\n\ | ||
| \ - Validates that the API exported by a multi-release\n\ | ||
| \ jar archive is consistent across all different release\n\ | ||
| \ versions. | ||
| \ versions.\n\ | ||
| \ - Issues a warning if there are invalid or duplicate file names | ||
|
|
||
|
|
||
slowhog marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| main.help.opt.any=\ | ||
| \ Operation modifiers valid in any mode:\n\ | ||
| \n\ | ||
|
|
@@ -346,7 +361,5 @@ main.help.postopt=\ | |
| \n\ | ||
| \ Mandatory or optional arguments to long options are also mandatory or optional\n\ | ||
| \ for any corresponding short options. | ||
| main.help.opt.extract=\ | ||
| \ Operation modifiers valid only in extract mode:\n | ||
| main.help.opt.extract.dir=\ | ||
| \ --dir Directory into which the jar will be extracted | ||
Uh oh!
There was an error while loading. Please reload this page.