8388811: [8u] VS2010 build broken by JDK-8374058 - #843
Conversation
|
👋 Welcome back andrew! A progress list of the required criteria for merging this PR into |
|
@gnu-andrew This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be: 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 3 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
fitzsim
left a comment
There was a problem hiding this comment.
I am not a Reviewer.
This is the exact same fix I did in the context of #835 before looking for and immediately finding this pull request:
https://github.com/fitzsim/jdk8u-dev/actions/runs/30028355752/job/89278670891
Fixing the compiler option would have eliminated the need for a similar patch on #835, so it seems like a nice thing to have, generally:
|
|
|
Thanks Christoph! |
|
@gnu-andrew |
|
/approve yes |
|
@jerboaa |
|
/integrate |
|
Going to push as commit 0830f61.
Your commit was automatically rebased without conflicts. |
|
@gnu-andrew Pushed as commit 0830f61. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
JDK-8374058, part of the 8u502 security changes, broke the build on Visual Studio 2010 by introducing a variable declaration in the middle of the function.
Moving it to the top of the function fixes the issue. I've confirmed this locally with
gccusing-Werror=declaration-after-statement.As a follow-on, I intend to look at whether we can introduce
-Werror=declaration-after-statementtogccbuilds so we can catch instances in shared code without requiring a Visual Studio 2010 build. This is at least the third instance of such breakage.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/843/head:pull/843$ git checkout pull/843Update a local copy of the PR:
$ git checkout pull/843$ git pull https://git.openjdk.org/jdk8u-dev.git pull/843/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 843View PR using the GUI difftool:
$ git pr show -t 843Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/843.diff
Using Webrev
Link to Webrev Comment