Skip to content

JDK-8382118: Refactor open/test/jdk/sun/net/www/protocol/file/DirPermissionDenied.java‎ test#31163

Open
mahendrachhipa wants to merge 2 commits into
openjdk:masterfrom
mahendrachhipa:JDK-8382118
Open

JDK-8382118: Refactor open/test/jdk/sun/net/www/protocol/file/DirPermissionDenied.java‎ test#31163
mahendrachhipa wants to merge 2 commits into
openjdk:masterfrom
mahendrachhipa:JDK-8382118

Conversation

@mahendrachhipa
Copy link
Copy Markdown
Member

@mahendrachhipa mahendrachhipa commented May 14, 2026

Breakdown one test tomultiple test each for one method.



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

Integration blocker

 ⚠️ Title mismatch between PR and JBS for issue JDK-8382118

Issue

  • JDK-8382118: Refactor open/‎test/jdk/sun/net/www/protocol/file/DirPermissionDenied.java‎ test (Enhancement - P4) ⚠️ Title mismatch between PR and JBS.

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 31163

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented May 14, 2026

👋 Welcome back mchhipa! 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
Copy Markdown

openjdk Bot commented May 14, 2026

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

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 14, 2026

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

  • net

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 openjdk Bot added the rfr Pull request is ready for review label May 14, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented May 14, 2026

Webrevs

Copy link
Copy Markdown

@Marcono1234 Marcono1234 left a comment

Choose a reason for hiding this comment

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

These comments are only suggestions; feel free to ignore them if you don't think they are helpful.

Comment on lines +57 to +58
assertThrows(IOException.class, ()-> {URLConnection uc = url.openConnection();
uc.connect();});
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Might be better to move url.openConnection() out of the assertThrows to ensure that it not unexpectedly throws an exception?

Comment on lines +63 to +64
assertThrows(IOException.class, ()-> {URLConnection uc = url.openConnection();
uc.getInputStream();});
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same as above, move url.openConnection() outside of assertThrows?

Comment on lines +69 to +70
assertDoesNotThrow(() -> {URLConnection uc = url.openConnection();
uc.getContentLengthLong();});
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

For better readability, place the statements on separate lines?

Suggested change
assertDoesNotThrow(() -> {URLConnection uc = url.openConnection();
uc.getContentLengthLong();});
assertDoesNotThrow(() -> {
URLConnection uc = url.openConnection();
uc.getContentLengthLong();
});

@dfuch
Copy link
Copy Markdown
Member

dfuch commented May 15, 2026

@mahendrachhipa can you fix the PR title?

@mahendrachhipa mahendrachhipa changed the title JDK-8382118: Refactor open/test/jdk/sun/net/www/protocol/file/DirPerm… JDK-8382118: Refactor open/test/jdk/sun/net/www/protocol/file/DirPermissionDenied.java‎ test May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

net [email protected] rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

3 participants