Skip to content

Conversation

@prrace
Copy link
Contributor

@prrace prrace commented Aug 22, 2025

Some text describing the Beans.instantiate lookup process existed only on the method that used the now removed AppletInitializer.
Since there are two other Beans.instantiate methods, we need to move that text to the remaining methods.

Note that one of the methods is also deprecated for removal, so it seems prudent to add it to both so that when the next to be removed method is gone, this problem doesn't recur.

This is a doc. only change. The CSR is ready for review.


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
  • Change requires CSR request JDK-8366018 to be approved

Issues

  • JDK-8366002: Beans.instantiate needs to describe the lookup procedure (Bug - P3)
  • JDK-8366018: Beans.instantiate needs to describe the lookup procedure (CSR)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 26905

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Aug 22, 2025

👋 Welcome back prr! 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 Aug 22, 2025

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

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

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

8366002: Beans.instantiate needs to describe the lookup procedure

Reviewed-by: serb, aivanov

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 574 new commits pushed to 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.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot changed the title 8366002 8366002: Specification Update Needed: Beans.instantiate Serialized Object Loading Behavior Aug 22, 2025
@openjdk openjdk bot added the csr Pull request needs approved CSR before integration label Aug 22, 2025
@openjdk
Copy link

openjdk bot commented Aug 22, 2025

@prrace 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 openjdk bot added client client-libs-dev@openjdk.org rfr Pull request is ready for review labels Aug 22, 2025
@mlbridge
Copy link

mlbridge bot commented Aug 22, 2025

Webrevs

@prrace prrace changed the title 8366002: Specification Update Needed: Beans.instantiate Serialized Object Loading Behavior 8366002: Beans.instantiate needs to describe the lookup procedure Aug 22, 2025
@mrserb
Copy link
Member

mrserb commented Aug 22, 2025

Do we have any tests that verify it actually works as described in the updated specification?

@prrace
Copy link
Contributor Author

prrace commented Aug 22, 2025

Do we have any tests that verify it actually works as described in the updated specification?

If you didn't see any, there probably aren't.
Well I guess there may be JCK ones, since this came from JCK. But that's out of scope here. I'm just restoring doc.

Copy link
Member

@aivanov-jdk aivanov-jdk left a comment

Choose a reason for hiding this comment

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

I see you just restoring the relevant portions of the existing javadoc for a removed method. Marking up can be postponed to a later time, if at all.

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 23, 2025

@prrace 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 Author

@prrace prrace left a comment

Choose a reason for hiding this comment

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

I've updated this with a couple of suggestions, including one from CSR review to link to a definition of binary name.

Copy link
Member

@aivanov-jdk aivanov-jdk left a comment

Choose a reason for hiding this comment

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

Looks good to me, however, I think it could be improved with marking up example class names and file names with {@code}.

* Instantiate a JavaBean.
* </p>
* The bean is created based on a name relative to a class-loader.
* This name should be a {@linkplain ClassLoader##binary-name binary name} of a class such as "a.b.C".
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* This name should be a {@linkplain ClassLoader##binary-name binary name} of a class such as "a.b.C".
* This name should be a {@linkplain ClassLoader##binary-name binary name}
* of a class such as "a.b.C".

Shall we wrap this line?

Should the names in the quotes be marked up with {@code} too?

Comment on lines +78 to +81
* For example, given a {@code beanName} of "x.y", {@code Beans.instantiate} would first
* try to read a serialized object from the resource "x/y.ser" and if
* that failed it would try to load the class "x.y" and create an
* instance of that class.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* For example, given a {@code beanName} of "x.y", {@code Beans.instantiate} would first
* try to read a serialized object from the resource "x/y.ser" and if
* that failed it would try to load the class "x.y" and create an
* instance of that class.
* For example, given a {@code beanName} of {@code "x.y"}, {@code Beans.instantiate} would first
* try to read a serialized object from the resource {@code "x/y.ser"} and if
* that failed it would try to load the class {@code "x.y"} and create an
* instance of that class.

I think the example names of the classes and files should be marked up with {@code}. This also applies to ".ser" in the paragraph above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure that is necessary.

Copy link
Member

Choose a reason for hiding this comment

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

Should the copyright year be bumped to 2025?

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed csr Pull request needs approved CSR before integration labels Sep 30, 2025
@prrace
Copy link
Contributor Author

prrace commented Oct 7, 2025

/integrate

@openjdk
Copy link

openjdk bot commented Oct 7, 2025

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

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Oct 7, 2025
@openjdk openjdk bot closed this Oct 7, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Oct 7, 2025
@openjdk
Copy link

openjdk bot commented Oct 7, 2025

@prrace Pushed as commit 6bfd018.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

client client-libs-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

3 participants