-
Notifications
You must be signed in to change notification settings - Fork 64
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
Fix Windows bug on getComponentMessages #913
Merged
Xiaochao8
merged 34 commits into
vmware:g11n-java-client
from
jessiejuachon:non-block-cache
Dec 9, 2020
Merged
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
5f42099
Non-blocking getSupportedLocales
jessiejuachon a207056
fixing failing test
jessiejuachon d291d7a
code clean up
jessiejuachon 134d23d
test
jessiejuachon a75c69b
fix test
jessiejuachon de5850a
code clean up
jessiejuachon 1c67db9
code clean up
jessiejuachon d7b27c3
Refresh cache of supported locales in a separate thread
jessiejuachon a9b5238
code clean up
jessiejuachon e1dca83
code clean up
jessiejuachon 7f05a14
fixing sonarcube bug
jessiejuachon 120e4d9
code cleanup
jessiejuachon c0b385d
sonarcube bug
jessiejuachon 12cc751
code clean up
jessiejuachon d0dae5d
code clean up
jessiejuachon b86d337
Use getResourceAsStream to read bundle
jessiejuachon 117b8b2
code clean up
jessiejuachon 7ae72d5
adding else block
jessiejuachon 5c99efe
Update src/main/java/com/vmware/vipclient/i18n/messages/api/opt/local…
jessiejuachon e58155a
changes after code review
jessiejuachon cebb186
rename parameter
jessiejuachon 4eb761b
code clean up
jessiejuachon 9fa2837
Merge branch 'non-block-cache' of github.com:jessiejuachon/singleton …
jessiejuachon d6559b3
thread safety
jessiejuachon 5ab40c5
adding comment
jessiejuachon 26bc138
space clean up
jessiejuachon f47feea
thread-safe file system access
jessiejuachon 8f11aa8
optimizations
jessiejuachon 84b6e2f
Merge remote-tracking branch 'upstream/g11n-java-client' into non-blo…
jessiejuachon 1d830b2
removing file system lock from this PR (out of scope)
jessiejuachon b55e685
closing input stream
jessiejuachon d8ac6f6
closing inputstream
jessiejuachon 6e5e871
Fixing windows bug on getComponentMessages
jessiejuachon 6bb40e0
Merge remote-tracking branch 'upstream/g11n-java-client' into non-blo…
jessiejuachon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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.
Suggestion cannot be applied right now. Please check back later.
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.
Can "/" be suitable for all systems? Should it be FileSeparator?
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.
No, that is the root cause of the bug. If we use FileSeparator (same as Paths.get), then '' (backslash) will be used in Windows platform. However, the forward slash in jar is not platform dependent. Even if the application is run on a Windows platform, the jar files will still have forward slashes. The use of Paths.get (or FileSeparator) was causing the issue of not finding the message bundles.