Skip to content

8357470: src/java.base/share/classes/sun/security/util/Debug.java implement the test for args.toLowerCase #25391

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

myankelev
Copy link
Member

@myankelev myankelev commented May 22, 2025

  • added an automated mixed case option
  • using multithreading now
  • added logs for simpler debug
  • added missing -Djava.security.auth.debug coverage

Progress

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

Issue

  • JDK-8357470: src/java.base/share/classes/sun/security/util/Debug.java implement the test for args.toLowerCase (Enhancement - P4)

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 25391

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

Using diff file

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

Using Webrev

Link to Webrev Comment

… implement the test for args.toLowerCase

* added an automated mixed case option
* using multithreading now
* added logs for simpler debug
* added missing -Djava.security.auth.debug coverage
@bridgekeeper
Copy link

bridgekeeper bot commented May 22, 2025

👋 Welcome back myankelevich! 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 May 22, 2025

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

@openjdk openjdk bot changed the title JDK-8357470: src/java.base/share/classes/sun/security/util/Debug.java implement the test for args.toLowerCase 8357470: src/java.base/share/classes/sun/security/util/Debug.java implement the test for args.toLowerCase May 22, 2025
@openjdk openjdk bot added the rfr Pull request is ready for review label May 22, 2025
@openjdk
Copy link

openjdk bot commented May 22, 2025

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

  • security

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.

@mlbridge
Copy link

mlbridge bot commented May 22, 2025

Webrevs

@openjdk
Copy link

openjdk bot commented Jun 5, 2025

@myankelev this pull request can not be integrated into master due to one or more merge conflicts. To resolve these merge conflicts and update this pull request you can run the following commands in the local repository for your personal fork:

git checkout JDK-8357470
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push

@openjdk openjdk bot added the merge-conflict Pull request has merge conflict with target branch label Jun 5, 2025
@openjdk openjdk bot removed the merge-conflict Pull request has merge conflict with target branch label Jun 16, 2025
@bridgekeeper
Copy link

bridgekeeper bot commented Jun 19, 2025

@myankelev 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!

Copy link
Contributor

@coffeys coffeys left a comment

Choose a reason for hiding this comment

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

As the original contributor of this test case, it's nice to see the speed up via use of ExecutorService.

The upper case and lower case property tests are somewhat questionable IMO. One or two lines of test code would suffice but now we have a lot of noise distracting from the original intent of the test code. One could argue that every system property in the JDK could be subject to the same uppercase/lower case testing but such tests don't exist. A few lines of test code can easily verify behavior. Anything else enters the fuzzy logic testing approach. Hope it's not a pattern that new tests have to adopt.

@myankelev
Copy link
Member Author

As the original contributor of this test case, it's nice to see the speed up via use of ExecutorService.

The upper case and lower case property tests are somewhat questionable IMO. One or two lines of test code would suffice but now we have a lot of noise distracting from the original intent of the test code. One could argue that every system property in the JDK could be subject to the same uppercase/lower case testing but such tests don't exist. A few lines of test code can easily verify behavior. Anything else enters the fuzzy logic testing approach. Hope it's not a pattern that new tests have to adopt.

Do you think that keeping it just mixed case would be sufficient? I believe this approach might be too much for other tests, it seems to me like a lot for this one as well

@coffeys
Copy link
Contributor

coffeys commented Jun 24, 2025

As the original contributor of this test case, it's nice to see the speed up via use of ExecutorService.
The upper case and lower case property tests are somewhat questionable IMO. One or two lines of test code would suffice but now we have a lot of noise distracting from the original intent of the test code. One could argue that every system property in the JDK could be subject to the same uppercase/lower case testing but such tests don't exist. A few lines of test code can easily verify behavior. Anything else enters the fuzzy logic testing approach. Hope it's not a pattern that new tests have to adopt.

Do you think that keeping it just mixed case would be sufficient? I believe this approach might be too much for other tests, it seems to me like a lot for this one as well

I'd welcome anything that helps reduce the extra code that's being added to test multiple case combinations for a system property. It strikes me as overkill.

@myankelev
Copy link
Member Author

@koushikthirupattur @coffeys brought the cases to mixed case only in order to still test everything, but no going into the testing of the implementation of the toLowerCase()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rfr Pull request is ready for review security [email protected]
Development

Successfully merging this pull request may close these issues.

3 participants