Skip to content
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

8333837: [11u] HexPrinterTest.java javac compile fails illegal start of expression #2750

Closed
wants to merge 2 commits into from

Conversation

sendaoYan
Copy link
Member

@sendaoYan sendaoYan commented Jun 8, 2024

Hi all,
The testcase test/lib-test/jdk/test/lib/hexdump/HexPrinterTest.java fails because of Java 11 doesn't support var v = switch(String) { case String -> ... } syntax. This testcase was backported by JDK-8329248 from jdk15. This PR fix the syntax error to make the testcase work normally.
Only change the testcase, the change has been verified, no risk.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • JDK-8333837 needs maintainer approval
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8333837: [11u] HexPrinterTest.java javac compile fails illegal start of expression (Bug - P3 - Approved)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2750/head:pull/2750
$ git checkout pull/2750

Update a local copy of the PR:
$ git checkout pull/2750
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2750/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2750

View PR using the GUI difftool:
$ git pr show -t 2750

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2750.diff

Webrev

Link to Webrev Comment

…of expression

Signed-off-by: sendaoYan <yansendao.ysd@alibaba-inc.com>
@bridgekeeper
Copy link

bridgekeeper bot commented Jun 8, 2024

👋 Welcome back syan! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Jun 8, 2024

@sendaoYan This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

8333837: [11u] HexPrinterTest.java javac compile fails illegal start of expression

Reviewed-by: mdoerr, shade

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 9 new commits pushed to the master branch:

  • 316cd2f: 7124313: [macosx] Swing Popups should overlap taskbar
  • 54bf522: 8307091: A few client tests intermittently throw ConcurrentModificationException
  • 2ded016: 8329995: Restricted access to /proc can cause JFR initialization to crash
  • bf56996: 8316104: Open source several Swing SplitPane and RadioButton related tests
  • 2f7954c: 8294148: Support JSplitPane for instructions and test UI
  • f36ba5a: 8328218: Delete test java/awt/Window/FindOwner/FindOwner.html
  • b5cbf8d: 8328561: test java/awt/Robot/ManualInstructions/ManualInstructions.java isn't used
  • aa0bba2: 8328234: Remove unused nativeUtils files
  • e4fb228: 8286781: Replace the deprecated/obsolete gethostbyname and inet_addr calls

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@TheRealMDoerr, @shipilev) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the rfr Pull request is ready for review label Jun 8, 2024
@sendaoYan
Copy link
Member Author

/approval request Fix a testcase bug, the change has been verified, no risk.

@openjdk
Copy link

openjdk bot commented Jun 8, 2024

@sendaoYan
8333837: The approval request has been created successfully.

@openjdk openjdk bot added the approval label Jun 8, 2024
@mlbridge
Copy link

mlbridge bot commented Jun 8, 2024

Webrevs

Copy link
Contributor

@TheRealMDoerr TheRealMDoerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the link in the description. The related issue is JDK-8329248. I think it's better not to update the Copyright because you are only repairing a backport. We usually avoid touching the Copyright headers for backports unless the original change updates it. Otherwise, LGTM. Thanks for fixing it!

@sendaoYan
Copy link
Member Author

Please fix the link in the description. The related issue is JDK-8329248. I think it's better not to update the Copyright because you are only repairing a backport. We usually avoid touching the Copyright headers for backports unless the original change updates it. Otherwise, LGTM. Thanks for fixing it!

Thanks for the correction, the description has been fixed. And the copyright year change has been revert.

Copy link
Contributor

@TheRealMDoerr TheRealMDoerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing it!

@sendaoYan
Copy link
Member Author

Thanks for the review.
/approval request Fix testcase bug, the change has been verified, no risk.

@openjdk
Copy link

openjdk bot commented Jun 11, 2024

@sendaoYan
8333837: The approval request has been updated successfully.

@sendaoYan
Copy link
Member Author

sendaoYan commented Jun 11, 2024

The GHA test runner report a intermittent failure, seems to be recorded by JDK-8229253. I think it's unrelated to this PR.

test FJExceptionTableLeak.exceptionTableCleanup(): failure
java.lang.AssertionError: failed to satisfy condition
	at FJExceptionTableLeak.gcAwait(FJExceptionTableLeak.java:202)
	at FJExceptionTableLeak.exceptionTableCleanup(FJExceptionTableLeak.java:137)

@TheRealMDoerr
Copy link
Contributor

The latest GHA run didn't show any failures.

@sendaoYan
Copy link
Member Author

The latest GHA run didn't show any failures.

Yes, I rerun the failed job manual.

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval labels Jun 12, 2024
@sendaoYan
Copy link
Member Author

Thanks for the review and approved.
/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jun 12, 2024
@openjdk
Copy link

openjdk bot commented Jun 12, 2024

@sendaoYan
Your change (at version 873c017) is now ready to be sponsored by a Committer.

@shipilev
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Jun 12, 2024

Going to push as commit c9cc14b.
Since your change was applied there have been 10 commits pushed to the master branch:

  • f343625: 8333839: [11u] LingeredAppTest.java fails Can't find source file: LingeredApp.java
  • 316cd2f: 7124313: [macosx] Swing Popups should overlap taskbar
  • 54bf522: 8307091: A few client tests intermittently throw ConcurrentModificationException
  • 2ded016: 8329995: Restricted access to /proc can cause JFR initialization to crash
  • bf56996: 8316104: Open source several Swing SplitPane and RadioButton related tests
  • 2f7954c: 8294148: Support JSplitPane for instructions and test UI
  • f36ba5a: 8328218: Delete test java/awt/Window/FindOwner/FindOwner.html
  • b5cbf8d: 8328561: test java/awt/Robot/ManualInstructions/ManualInstructions.java isn't used
  • aa0bba2: 8328234: Remove unused nativeUtils files
  • e4fb228: 8286781: Replace the deprecated/obsolete gethostbyname and inet_addr calls

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jun 12, 2024
@openjdk openjdk bot closed this Jun 12, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Jun 12, 2024
@openjdk
Copy link

openjdk bot commented Jun 12, 2024

@shipilev @sendaoYan Pushed as commit c9cc14b.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@sendaoYan
Copy link
Member Author

Thanks all for the review and sponsor.

@sendaoYan sendaoYan deleted the jbs8333837 branch June 12, 2024 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants