-
Notifications
You must be signed in to change notification settings - Fork 232
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
Conversation
…en to determine its location
👋 Welcome back ashi! A progress list of the required criteria for merging this PR into |
@@ -106,6 +106,7 @@ public Point call() throws Exception { | |||
@Override | |||
public void run() { | |||
BasicComboPopup popup = (BasicComboPopup) comboBox.getAccessibleContext().getAccessibleChild(0); | |||
popup.show(); | |||
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
@amosshi This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
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
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 |
This backport pull request has now been updated with issue from the original commit. |
@@ -106,6 +106,7 @@ public Point call() throws Exception { | |||
@Override | |||
public void run() { | |||
BasicComboPopup popup = (BasicComboPopup) comboBox.getAccessibleContext().getAccessibleChild(0); | |||
popup.show(); | |||
|
There was a problem hiding this comment.
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?
|
/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” |
/integrate |
Going to push as commit 6b225d5.
Your commit was automatically rebased without conflicts. |
Backport of JDK-8253980
bug7158712.java
is a cleangit apply
ProblemList.txt
is a manual change based on original commit, can beconsidered as clean
popup.show()
has been added to avoid the test case failure with message:Testing
bug7158712.java
: Test results: passed: 1SKIPPED
on2024-04-28
javax/swing/plaf/synth/7158712/bug7158712.java
:SKIPPED
[Filter: jtregExcludeListFilter - Test has been excluded by an exclude list] GitHub 📊 - [0 msec]Progress
Issue
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