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
8231640: (prop) Canonical property storage #5372
Closed
+837
−15
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
85748cf
8231640: (prop) Canonical property storage
jaikiran 641864e
use @implNote to explain the use of the environment variable
jaikiran 64e2065
implement review suggestions:
jaikiran 1ded17f
adjust testcases to verify the new semantics
jaikiran 867ec99
update javadoc @implNote to match latest changes
jaikiran 848ded8
Implement Stuart's suggestion on date format:
jaikiran 5326b7c
update the new tests to match the new date format expectations and al…
jaikiran 7736a8f
Implement Stuart's suggestion to use Collections instead of Arrays fo…
jaikiran c9d3cb8
update javadoc to match latest changes
jaikiran a29d0f0
dummy commit to trigger GitHub actions job to try and reproduce an un…
jaikiran a9b71d2
Implement Roger's suggestions:
jaikiran 06ff3bd
jcheck fix - trailing whitespace in test
jaikiran 1d24a3a
allow free-form text for java.util.Properties.storeDate system property
jaikiran c1dfb18
Update javadoc based on Stuart's inputs
jaikiran ff34ad5
Implement Roger's and the agreed upon decision to allow free-form tex…
jaikiran 6447f9b
Merge latest from master branch
jaikiran 9237466
unused imports
jaikiran 315f3c8
update the javadoc to clarify how line terminator characters are hand…
jaikiran 14711a9
Add a @implNote to specify the order in which the properties are writ…
jaikiran 6f5f1be
Introduce a test to make sure backslash character in the system prope…
jaikiran 7098a2c
Address review suggestions:
jaikiran 79d1052
- Clarify how overriden Properties#entrySet() method impacts the orde…
jaikiran e2effb9
(Only doc/comment changes):
jaikiran eb31d28
- Implement Mark's suggestion in CSR, to rename java.util.Properties.…
jaikiran 458c1fd
Implement Mark's suggestion in CSR to include the java.properties.dat…
jaikiran e350721
Roger's suggestion to reword the implSpec text
jaikiran ed5c221
reduce the line length of code comment
jaikiran 944cbf1
Revert "Implement Mark's suggestion in CSR to include the java.proper…
jaikiran File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
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.
Should something be done for comments ending with \ (backslash) ? It might otherwise suppress the first property assignment that follows.
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.
There has been no change in how we deal with this aspect. The existing specification (stated in the
load
method) says:(emphasis on that last sentence).
I'll anyway go ahead and add new tests around this to be sure that this works as advertised.
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.
Oh - great - thanks - verifying by a test that it also applies to the comment specified by
java.util.Properties.storeDate
would be good.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.
Done. A new test
StoreReproducibilityTest#testBackSlashInStoreDateValue
has been added in the latest updated version of this PR. This test passes. Plus I checked the written out properties file, from these tests, for such values injava.util.Properties.storeDate
and the content matches what the spec says.Just for quick reference - a run of that test case with the "newline-plus-backslash...." system property value (cannot paste that exact string value from that test case because GitHub editor is messing up the special characters) generates output like below: