jdk icon indicating copy to clipboard operation
jdk copied to clipboard

8342870: Errors related to unused code on Windows after 8339120 in accessibility

Open TheShermanTanker opened this issue 1 year ago • 4 comments
trafficstars

After 8339120, gcc began catching many different instances of unused code in the Windows specific codebase. Some of these seem to be bugs. I've taken the effort to mark out all the relevant globals and locals that trigger the unused warnings and addressed all of them by commenting out the code as appropriate. I am confident that in many cases this simplistic approach of commenting out code does not fix the underlying issue, and the warning actually found a bug that should be fixed. In these instances, I will be aiming to fix these bugs with help from reviewers, so I recommend anyone reviewing who knows more about the code than I do to see whether there is indeed a bug that needs fixing in a different way than what I did


Progress

  • [ ] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue

Issue

  • JDK-8342870: Errors related to unused code on Windows after 8339120 in accessibility (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/21656/head:pull/21656
$ git checkout pull/21656

Update a local copy of the PR:
$ git checkout pull/21656
$ git pull https://git.openjdk.org/jdk.git pull/21656/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 21656

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/21656.diff

Webrev

Link to Webrev Comment

TheShermanTanker avatar Oct 23 '24 05:10 TheShermanTanker

:wave: Welcome back jwaters! 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.

bridgekeeper[bot] avatar Oct 23 '24 05:10 bridgekeeper[bot]

❗ This change is not yet ready to be integrated. See the Progress checklist in the description for automated requirements.

openjdk[bot] avatar Oct 23 '24 05:10 openjdk[bot]

@TheShermanTanker The following label will be automatically applied to this pull request:

  • client

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

openjdk[bot] avatar Oct 23 '24 05:10 openjdk[bot]

Bumping, please advise on whether the fixes are correct or not

TheShermanTanker avatar Oct 30 '24 05:10 TheShermanTanker

Bumping

TheShermanTanker avatar Nov 04 '24 06:11 TheShermanTanker

Bumping

TheShermanTanker avatar Nov 08 '24 09:11 TheShermanTanker

Bumping

TheShermanTanker avatar Nov 12 '24 14:11 TheShermanTanker

There's not much I like about this PR. I think it would be better to withdraw it and submit a bug against A11Y for people to look at what should really be done about these cases. Which could include "do nothing".

prrace avatar Nov 19 '24 17:11 prrace

There's not much I like about this PR. I think it would be better to withdraw it and submit a bug against A11Y for people to look at what should really be done about these cases. Which could include "do nothing".

Thanks for taking a look. I'm not sure who is responsible for reviewing A11Y though, so I don't know who to submit the bug to for them to take a look at

TheShermanTanker avatar Nov 20 '24 05:11 TheShermanTanker

Also, as mentioned, the fixes in here might not necessarily be correct. These are only stopgap changes to draw attention to the areas causing an issue, so they can be properly caught and fixed if need be

TheShermanTanker avatar Nov 20 '24 05:11 TheShermanTanker

Bumping, I'm still not sure where to submit the bug. On the JBS?

TheShermanTanker avatar Nov 22 '24 09:11 TheShermanTanker

I am still not sure where to ask for A11Y people to look at this

TheShermanTanker avatar Dec 02 '24 12:12 TheShermanTanker

@prrace Sorry for the trouble, but are there other maintainers for accessibility that can take a look at this change? I know you can't really review this properly since you're pretty busy, so I was thinking of trying to get the attention of other maintainers, but I unfortunately don't know who they are

TheShermanTanker avatar Dec 18 '24 06:12 TheShermanTanker

@prrace I've tried to fix up the code changes here to look as neat as possible, but ultimately I'm not sure what you want it to look like. Could you explain why you don't like the changes in accessibility? Unlike the corresponding awt changes which are more complex and even touch the C++ Standard, the Pull Request here consists purely of marking unused code for removal, which shouldn't be too bad at least in my opinion, which is why I'm not sure why you don't like it

TheShermanTanker avatar Jan 07 '25 09:01 TheShermanTanker

Sorry for this, but I really have no one else to turn to for help. Paging @azuev-java

TheShermanTanker avatar Jan 08 '25 04:01 TheShermanTanker

Anyone?

TheShermanTanker avatar Jan 10 '25 04:01 TheShermanTanker

Anyone?

TheShermanTanker avatar Jan 16 '25 06:01 TheShermanTanker

@TheShermanTanker This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Feb 25 '25 20:02 bridgekeeper[bot]

@TheShermanTanker This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

bridgekeeper[bot] avatar Mar 26 '25 01:03 bridgekeeper[bot]

No. /open

TheShermanTanker avatar Mar 26 '25 06:03 TheShermanTanker

@TheShermanTanker This pull request is now open

openjdk[bot] avatar Mar 26 '25 06:03 openjdk[bot]

@TheShermanTanker This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Apr 23 '25 07:04 bridgekeeper[bot]

Stay open

TheShermanTanker avatar Apr 23 '25 07:04 TheShermanTanker

@TheShermanTanker This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar May 21 '25 09:05 bridgekeeper[bot]

/touch

TheShermanTanker avatar May 21 '25 11:05 TheShermanTanker

@TheShermanTanker The pull request is being re-evaluated and the inactivity timeout has been reset.

openjdk[bot] avatar May 21 '25 11:05 openjdk[bot]

@TheShermanTanker This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Jun 18 '25 17:06 bridgekeeper[bot]

/touch

TheShermanTanker avatar Jun 19 '25 06:06 TheShermanTanker

@TheShermanTanker The pull request is being re-evaluated and the inactivity timeout has been reset.

openjdk[bot] avatar Jun 19 '25 06:06 openjdk[bot]