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

8253980: javax/swing/plaf/synth/7158712/bug7158712.java fails on windows #2688

Closed
wants to merge 2 commits into from

Conversation

amosshi
Copy link
Contributor

@amosshi amosshi commented Apr 26, 2024

Backport of JDK-8253980

  • This PR contains two commits
  • Commit 1: is a de facto clean back port of original commit
    • bug7158712.java is a clean git apply
    • ProblemList.txt is a manual change based on original commit, can be considered as clean
  • Commit 2
    • A line popup.show() has been added to avoid the test case failure with message:
      • IllegalComponentStateException: component must be showing on the screen to determine its location

Testing

  • Local: Test passed
    • bug7158712.java: Test results: passed: 1
  • Pipeline: All checks have passed
  • Testing Machine: SAP nightlies SKIPPED on 2024-04-28
    • Automated jtreg test: jtreg_jdk_tier4
    • javax/swing/plaf/synth/7158712/bug7158712.java: SKIPPED [Filter: jtregExcludeListFilter - Test has been excluded by an exclude list] GitHub 📊 - [0 msec]

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
  • JDK-8253980 needs maintainer approval

Issue

  • JDK-8253980: javax/swing/plaf/synth/7158712/bug7158712.java fails on windows (Bug - P4 - Approved)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2688/head:pull/2688
$ git checkout pull/2688

Update a local copy of the PR:
$ git checkout pull/2688
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2688/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2688

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2688.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 26, 2024

👋 Welcome back ashi! 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.

@@ -106,6 +106,7 @@ public Point call() throws Exception {
@Override
public void run() {
BasicComboPopup popup = (BasicComboPopup) comboBox.getAccessibleContext().getAccessibleChild(0);
popup.show();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding this line to fix the following test case failure:

  • IllegalComponentStateException: component must be showing on the screen to determine its location
java.lang.reflect.InvocationTargetException
	at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1367)
	at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1342)
	at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1480)
	at bug7158712.main(bug7158712.java:105)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
	at java.desktop/java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2101)
	at java.desktop/java.awt.Component.getLocationOnScreen(Component.java:2075)
	at bug7158712$3.run(bug7158712.java:110)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.reflect.InvocationTargetException

Copy link
Member

Choose a reason for hiding this comment

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

Why is the popup.show() not needed in higher releases ? Is there maybe some other backport missing?

@openjdk
Copy link

openjdk bot commented Apr 26, 2024

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

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

8253980: javax/swing/plaf/synth/7158712/bug7158712.java fails on windows

Reviewed-by: mbaesken

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 16 new commits pushed to the master branch:

  • b7822c3: 8331643: [11u]: Bump GHA bootstrap JDK to 11.0.23
  • 3f636f3: 8310818: Refactor more Locale tests to use JUnit
  • 1da8fd8: 8295343: sun/security/pkcs11 tests fail on Linux RHEL 8.6 and newer
  • cabaf74: 8305931: jdk/jfr/jcmd/TestJcmdDumpPathToGCRoots.java failed with "Expected chains but found none"
  • 137a8b9: 8308021: Update IANA Language Subtag Registry to Version 2023-05-11
  • d42634b: 8263940: NPE when creating default file system when default file system provider is packaged as JAR file on class path
  • 9363095: 8328194: Add a test to check default rendering engine
  • 81f2413: 8318809: java/util/concurrent/ConcurrentLinkedQueue/WhiteBox.java shows intermittent failures on linux ppc64le and aarch64
  • f7d0522: 8315889: Open source several Swing HTMLDocument related tests
  • 1e1688a: 8294137: Review running times of java.math tests
  • ... and 6 more: https://git.openjdk.org/jdk11u-dev/compare/dabf4d16a190f5169a2eb56ff964f9a3365bce62...master

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 Backport bdd5782a67ac4b72a7dab5ea6eee3b38a864ffbf 8253980: javax/swing/plaf/synth/7158712/bug7158712.java fails on windows Apr 26, 2024
@openjdk
Copy link

openjdk bot commented Apr 26, 2024

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport rfr Pull request is ready for review labels Apr 26, 2024
@mlbridge
Copy link

mlbridge bot commented Apr 26, 2024

Webrevs

@@ -106,6 +106,7 @@ public Point call() throws Exception {
@Override
public void run() {
BasicComboPopup popup = (BasicComboPopup) comboBox.getAccessibleContext().getAccessibleChild(0);
popup.show();

Copy link
Member

Choose a reason for hiding this comment

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

Why is the popup.show() not needed in higher releases ? Is there maybe some other backport missing?

@openjdk
Copy link

openjdk bot commented May 2, 2024

⚠️ @amosshi This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@amosshi
Copy link
Contributor Author

amosshi commented May 6, 2024

/approval request "Backporting for parity with 11.0.24-oracle. Un-Clean backport. No risk, test fix. SAP nightlies SKIPPED on 2024-04-28. Tested passed in local machine on both Windows 11 and MacOS 14.4.1”

@openjdk
Copy link

openjdk bot commented May 6, 2024

@amosshi
8253980: The approval request has been created successfully.

@openjdk openjdk bot added approval ready Pull request is ready to be integrated and removed approval labels May 6, 2024
@amosshi
Copy link
Contributor Author

amosshi commented May 8, 2024

/integrate

@openjdk
Copy link

openjdk bot commented May 8, 2024

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

  • b9cb572: 8313702: Update IANA Language Subtag Registry to Version 2023-08-02
  • c542dc9: 8325579: Inconsistent behavior in com.sun.jndi.ldap.Connection::createSocket
  • 4202063: 8293563: [macos-aarch64] SA core file tests failing with sun.jvm.hotspot.oops.UnknownOopException
  • b7822c3: 8331643: [11u]: Bump GHA bootstrap JDK to 11.0.23
  • 3f636f3: 8310818: Refactor more Locale tests to use JUnit
  • 1da8fd8: 8295343: sun/security/pkcs11 tests fail on Linux RHEL 8.6 and newer
  • cabaf74: 8305931: jdk/jfr/jcmd/TestJcmdDumpPathToGCRoots.java failed with "Expected chains but found none"
  • 137a8b9: 8308021: Update IANA Language Subtag Registry to Version 2023-05-11
  • d42634b: 8263940: NPE when creating default file system when default file system provider is packaged as JAR file on class path
  • 9363095: 8328194: Add a test to check default rendering engine
  • ... and 9 more: https://git.openjdk.org/jdk11u-dev/compare/dabf4d16a190f5169a2eb56ff964f9a3365bce62...master

Your commit was automatically rebased without conflicts.

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

openjdk bot commented May 8, 2024

@amosshi Pushed as commit 6b225d5.

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

@amosshi amosshi deleted the backport-8253980 branch June 11, 2024 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

2 participants