-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
8346773: Fix unmatched brackets in some misc files #22861
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back qxing! A progress list of the required criteria for merging this PR into |
@MaxXSoft This change is no longer ready for integration - check the PR body for details. |
@MaxXSoft The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
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 can really only review the doc files and the Makefile.
doc/hotspot-unit-tests.md
Outdated
@@ -172,7 +172,7 @@ Provide informative, but not too verbose error messages. | |||
All GoogleTest asserts print compared expressions and their values, so | |||
there is no need to have them in error messages. Asserts print only | |||
compared values, they do not print any of interim variables, e.g. | |||
`ASSERT_TRUE((val1 == val2 && isFail(foo(8)) || i == 18)` prints only | |||
`ASSERT_TRUE(val1 == val2 && isFail(foo(8)) || i == 18)` prints only |
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.
Looking at this expression, I believe the intention is this.
`ASSERT_TRUE(val1 == val2 && isFail(foo(8)) || i == 18)` prints only | |
`ASSERT_TRUE((val1 == val2 && isFail(foo(8))) || i == 18)` prints only |
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.
Thanks for the suggestion, updated.
make/data/cldr/common/main/kn.xml
Outdated
@@ -1082,7 +1082,7 @@ Warnings: All cp values have U+FE0F characters removed. See /annotationsDerived/ | |||
<type key="calendar" type="indian">ಭಾರತೀಯ ರಾಷ್ಟ್ರೀಯ ಕ್ಯಾಲೆಂಡರ್</type> | |||
<type key="calendar" type="islamic">ಇಸ್ಲಾಮಿಕ್ ಕ್ಯಾಲೆಂಡರ್</type> | |||
<type key="calendar" type="islamic-civil">ಇಸ್ಲಾಮಿಕ್-ಸಿವಿಲ್ ಕ್ಯಾಲೆಂಡರ್</type> | |||
<type key="calendar" type="islamic-rgsa" draft="contributed">ಇಸ್ಲಾಮಿಕ್ ಕ್ಯಾಲೆಂಡರ್ (ಸೌದಿ ಅರೇಬಿಯಾ, ಸೈಟಿಂಗ್)bia, sighting)</type> | |||
<type key="calendar" type="islamic-rgsa" draft="contributed">ಇಸ್ಲಾಮಿಕ್ ಕ್ಯಾಲೆಂಡರ್ (ಸೌದಿ ಅರೇಬಿಯಾ, ಸೈಟಿಂಗ್)</type> |
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.
Hi, we would not modify the contents of upstream data from CLDR.
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.
Sorry, I've reverted these changes in the latest commit.
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 strongly suggest avoiding omnibus changes like this when possible (which it
is here). Just because it's all about one "kind" of change doesn't make it a
cohesive change. This is touching many distinct areas of the JDK, and several
different languages as well. That makes it harder to review and to manage the
review, because it is large and affects a wide range of areas, so may need
many reviewers. And the whole thing might get stalled by discussion of one
piece.
There is also no mention of what testing has been done for this PR. Some of
the changes are in executable code, and need to be tested.
I think that all of the files in make/data/cldr/common are from the Unicode
Consortium, and should not be modified here.
doc/hotspot-unit-tests.html
Outdated
@@ -245,7 +245,7 @@ <h3 id="error-messages">Error messages</h3> | |||
<p>All GoogleTest asserts print compared expressions and their values, | |||
so there is no need to have them in error messages. Asserts print only | |||
compared values, they do not print any of interim variables, e.g. | |||
<code>ASSERT_TRUE((val1 == val2 && isFail(foo(8)) || i == 18)</code> | |||
<code>ASSERT_TRUE(val1 == val2 && isFail(foo(8)) || i == 18)</code> |
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 file is generated from the .md file, and should not be edited directly.
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.
Updated both .md
and .html
using make update-build-docs
in the latest commit.
@@ -47,7 +47,7 @@ LIB_FILES = $(shell find $(TESTLIBRARY_DIR)/jdk/test/lib/ \ | |||
$(TESTLIBRARY_DIR)/jdk/test/lib/process \ | |||
$(TESTLIBRARY_DIR)/jdk/test/lib/util \ | |||
$(TESTLIBRARY_DIR)/jtreg \ | |||
-maxdepth 1 -name '*.java')) | |||
-maxdepth 1 -name '*.java') |
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 wonder why this hasn't caused problems and been found long ago? Does make just drop that stray
close-paren?
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've tested this by running make
, and the previous Makefile reports an error like file test/lib/jtreg/SkippedException.java)
not found. So this fix is necessary.
I also checked the git log, this change was introduced in #22420, not that long ago.
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.
Hmm, apparently this is not run as part of tier 1-3, which I ran in my patch. I wonder how this test is run. And it means this patch needs to be backported to 24.
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.
Only this small piece would be appropriate for backport to 24. I suggest splitting this out into its own bug,
fixing it in isolation, and backporting that.
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.
The purpose of this Makefile seems to be to build ctw.jar. So far as I can tell, nothing in the JDK uses that jar,
or invokes that Makefile. There are some tests for the ctw component in hotspot/jtreg/testlibrary_tests/ctw. I
think if you ran tier4 testing that you would hit those. Or you could use TEST=hotspot:hotspot_misc
, or
specify that directory. But those tests don't appear to use that jar. So I think there isn't a test that touches
this Makefile.
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 makefile is not used by jtreg tests. The ctw code is compiled with
@library /test/lib / /testlibrary/ctw/src
so jtreg compiled the ctw library files itself.
This makefile might be used for standalone build if needed.
Thanks for fixing this!
@@ -61,8 +61,6 @@ | |||
.landscapeArea { page: land; width: 1010px; page-break-before: always; } | |||
|
|||
@page { margin: 0.1in; } | |||
|
|||
} |
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.
Does this affect the behavior of the test this is part of?
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.
Reverted.
<?xml version="1.0" encoding="UTF-8"?> | ||
<oscars xmlns:osc-results="http://www.fatdog.com/oscar-results" |
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 can't tell whether anything was changed in this file other than the modification of all the end of
line indicators. I've no idea whether changing those is appropriate or not, but this file came from
a 3rd party, so might not be appropriate to change here.
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.
+1 to all of that. This change is un-reviewable.
<?xml version="1.0" encoding="UTF-8"?> | ||
<oscars xmlns:osc-results="http://www.fatdog.com/oscar-results" |
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.
Does this change affect the behavior of the associated test(s)?
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 was also wondering how this was tested.
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.
FYI, the way to test this is ..
cd test/jdk
jtreg sanity/client/SwingSet/src/TableDemoTest.java
I tried converting all ^M to \n in this file another repo and comparing with your patch but every line was different so I just can't review this.
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.
For safety reasons I've restored this file as well as all the files in unit tests.
And many of the appropriate reviewers might be unavailable for a while, since it's right before Christmas. |
/reviewers 3 reviewer |
I think at the very least this needs multiple reviewers. Even 2 isn't enough considering it is so cross-area. |
/reviewers 2 |
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've reviewed doc/hotspot-unit-tests.* and the Makefile.
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.
Thanks for the ctw fix.
/reviewers 3 reviewer
@@ -47,7 +47,7 @@ LIB_FILES = $(shell find $(TESTLIBRARY_DIR)/jdk/test/lib/ \ | |||
$(TESTLIBRARY_DIR)/jdk/test/lib/process \ | |||
$(TESTLIBRARY_DIR)/jdk/test/lib/util \ | |||
$(TESTLIBRARY_DIR)/jtreg \ | |||
-maxdepth 1 -name '*.java')) | |||
-maxdepth 1 -name '*.java') |
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.
Hmm, apparently this is not run as part of tier 1-3, which I ran in my patch. I wonder how this test is run. And it means this patch needs to be backported to 24.
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.
The fix for the ctw Makefile should not be included in this PR. It's a bug, and needs
to be fixed separately and backported to 24 to fix the introduction there via the
backport of JDK-8334733 from 25 to 24, without dragging the rest of this back to 24.
@kimbarrett @liach Thanks for your suggestions! I've moved the fix for the CTW Makefile to a separate pull request: #22878, please check it. |
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.
Looks good.
/label remove i18n |
@AlanBateman |
@AlanBateman |
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.
The title on the JBS issue is a mis-leading as it's now about man pages, docs, and a comment. Looks okay.
@AlanBateman Thanks for the review! I updated the title of the JBS issue and this PR. |
This patch fixes unmatched brackets in some files, mostly in comments, docs and man pages.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22861/head:pull/22861
$ git checkout pull/22861
Update a local copy of the PR:
$ git checkout pull/22861
$ git pull https://git.openjdk.org/jdk.git pull/22861/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22861
View PR using the GUI difftool:
$ git pr show -t 22861
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22861.diff
Using Webrev
Link to Webrev Comment