Skip to content
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

8263472: Specification of JComponent::updateUI should document that the default implementation does nothing #2955

Closed
wants to merge 10 commits into from

Conversation

prsadhuk
Copy link
Contributor

@prsadhuk prsadhuk commented Mar 12, 2021

It's unclear from the spec that the original implementation of the method JComponent.updateUI() does nothing which needs to be explicitly stated in the javadoc.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8263472: Specification of JComponent::updateUI should document that the default implementation does nothing

Reviewers

Download

To checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/2955/head:pull/2955
$ git checkout pull/2955

To update a local copy of the PR:
$ git checkout pull/2955
$ git pull https://git.openjdk.java.net/jdk pull/2955/head

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 12, 2021

👋 Welcome back psadhukhan! 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 openjdk bot added the rfr Pull request is ready for review label Mar 12, 2021
@openjdk
Copy link

openjdk bot commented Mar 12, 2021

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

  • swing

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 swing client-libs-dev@openjdk.org label Mar 12, 2021
@mlbridge
Copy link

mlbridge bot commented Mar 12, 2021

@mrserb
Copy link
Member

mrserb commented Mar 12, 2021

Do we really want to specify this as a noop method? In this case, we will not be able to change this implementation in the future.

@prsadhuk
Copy link
Contributor Author

Do we really want to specify this as a noop method? In this case, we will not be able to change this implementation in the future.

I thought about it earlier but I raised this PR as I don't see this method was updated from inception so I was not sure if it will be in future and also since it already says "JComponent subclasses must override this method" so a noop default implementation will not be a problem, I guess.

@openjdk
Copy link

openjdk bot commented Mar 15, 2021

@prsadhuk 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:

8263472: Specification of JComponent::updateUI should document that the default implementation does nothing

Reviewed-by: aivanov, darcy

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 626 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 added the ready Pull request is ready to be integrated label Mar 15, 2021
@mrserb
Copy link
Member

mrserb commented Mar 15, 2021

I thought about it earlier but I raised this PR as I don't see this method was updated from inception so I was not sure if it will be in future and also since it already says "JComponent subclasses must override this method" so a noop default implementation will not be a problem, I guess.

Based on the current spec we may add some kind of assertion that this method must not be called.

@aivanov-jdk
Copy link
Member

I thought about it earlier but I raised this PR as I don't see this method was updated from inception so I was not sure if it will be in future and also since it already says "JComponent subclasses must override this method" so a noop default implementation will not be a problem, I guess.

Based on the current spec we may add some kind of assertion that this method must not be called.

I'm afraid this can be interpreted in a wrong way: never call JComponent.updateUI(), which is not what we want to say, is it?

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Mar 16, 2021
@openjdk openjdk bot added the ready Pull request is ready to be integrated label Mar 18, 2021
@mrserb
Copy link
Member

mrserb commented Mar 18, 2021

Do we need a CSR?

@prsadhuk
Copy link
Contributor Author

I have added CSR just in case...https://bugs.openjdk.java.net/browse/JDK-8263845....please review

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Mar 22, 2021
@prsadhuk prsadhuk changed the title 8263472: Specification of JComponent::updateUI doesn't mention that the original implementaiton does nothing 8263472: Specification of JComponent::updateUI should document that the default implementation does nothing Mar 22, 2021
@openjdk openjdk bot added the ready Pull request is ready to be integrated label Mar 22, 2021
@mrserb
Copy link
Member

mrserb commented Mar 24, 2021

/csr

@openjdk openjdk bot added the csr Pull request needs approved CSR before integration label Mar 24, 2021
@openjdk
Copy link

openjdk bot commented Mar 24, 2021

@mrserb this pull request will not be integrated until the CSR request JDK-8263845 for issue JDK-8263472 has been approved.

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Mar 24, 2021
@openjdk openjdk bot added ready Pull request is ready to be integrated and removed csr Pull request needs approved CSR before integration labels Mar 25, 2021
@prsadhuk
Copy link
Contributor Author

/integrate

@openjdk openjdk bot closed this Mar 26, 2021
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated labels Mar 26, 2021
@prsadhuk prsadhuk deleted the JDK-8263472 branch March 26, 2021 11:29
@openjdk openjdk bot removed the rfr Pull request is ready for review label Mar 26, 2021
@openjdk
Copy link

openjdk bot commented Mar 26, 2021

@prsadhuk Since your change was applied there have been 648 commits pushed to the master branch:

  • e47dfb8: 8264062: Use the blessed modifier order in jdk.jfr
  • 5a930c4: 8264135: UnsafeGetStableArrayElement should account for different JIT implementation details
  • bb354b9: 8264166: OopStorage should support specifying MEMFLAGS for allocations
  • 41657b1: 8261551: Remove special CDS handling in Metaspace::allocate
  • fe8ef32: 8264151: ciMethod::ensure_method_data() should return false is loading resulted in empty state
  • 4e708e5: 8260862: JFR: New configure command for the jfr tool
  • 2593196: 8264161: BigDecimal#stripTrailingZeros can throw undocumented ArithmeticException
  • 2a5e0dd: 8262081: vmTestbase/nsk/jdi/ThreadDeathRequest/addThreadFilter/addthreadfilter001/TestDescription.java failed with "ERROR: eventSet1.size() != 3 :: 2"
  • 374272f: 8261502: ECDHKeyAgreement: Allows alternate ECPrivateKey impl and revised exception handling
  • dbc9e4b: 8253795: Implementation of JEP 391: macOS/AArch64 Port
  • ... and 638 more: https://git.openjdk.java.net/jdk/compare/5183d8ae1eec86202eace2c4770f81edbc73cb68...master

Your commit was automatically rebased without conflicts.

Pushed as commit 4fbb7c2.

💡 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
integrated Pull request has been integrated swing client-libs-dev@openjdk.org
5 participants