| Summary: | [Shell] moveAbove and moveBelow with parent throws IllegalArgumentException | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Artur Kronenberg <artur.kronenberg> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 1.4 | ||
| Target Milestone: | 2.3 M2 | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
Still valid with RAP 2.1. Made Control#moveAbove/moveBelow no-op for Shell with change https://git.eclipse.org/r/22763. We still have bug 322511 for shell reordering not implemented. |
Test case to reproduce: public void testShellMoveAboveWithParent() { Display display = new Display(); Shell shell = new Shell( display ); Shell shell2 = new Shell( shell ); shell2.moveAbove( null ); } Stack Trace: java.lang.IllegalArgumentException: The control was not added to this control holder. at org.eclipse.swt.widgets.ControlHolder.remove(ControlHolder.java:62) at org.eclipse.swt.widgets.ControlHolder.removeControl(ControlHolder.java:116) at org.eclipse.swt.widgets.Control.moveAbove(Control.java:1401) at org.eclipse.swt.widgets.Control_Test.testShellMoveAboveWithParent(Control_Test.java:529) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)