Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 134347 Details for
Bug 262089
[Display] dispose() causes NPE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Test case
clipboard.txt (text/plain), 1.81 KB, created by
RĂ¼diger Herrmann
on 2009-05-04 19:25:27 EDT
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
RĂ¼diger Herrmann
Created:
2009-05-04 19:25:27 EDT
Size:
1.81 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.rwt.testfixture >Index: src/org/eclipse/swt/RWTFixture.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt.test/org.eclipse.rap.rwt.testfixture/src/org/eclipse/swt/RWTFixture.java,v >retrieving revision 1.5 >diff -u -r1.5 RWTFixture.java >--- src/org/eclipse/swt/RWTFixture.java 29 Apr 2009 13:24:50 -0000 1.5 >+++ src/org/eclipse/swt/RWTFixture.java 4 May 2009 23:25:51 -0000 >@@ -372,7 +372,10 @@ > } > } > >- while( RWTLifeCycle.getSessionDisplay().readAndDispatch() ) { >+ Display display = RWTLifeCycle.getSessionDisplay(); >+ if( display != null ) { >+ while( display.readAndDispatch() ) { >+ } > } > > lifeCycle.sleep(); >#P org.eclipse.rap.rwt.q07.test >Index: src/org/eclipse/swt/internal/widgets/displaykit/DisplayLCA_Test.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt.test/org.eclipse.rap.rwt.q07.test/src/org/eclipse/swt/internal/widgets/displaykit/DisplayLCA_Test.java,v >retrieving revision 1.3 >diff -u -r1.3 DisplayLCA_Test.java >--- src/org/eclipse/swt/internal/widgets/displaykit/DisplayLCA_Test.java 2 Jul 2008 12:43:19 -0000 1.3 >+++ src/org/eclipse/swt/internal/widgets/displaykit/DisplayLCA_Test.java 4 May 2009 23:25:52 -0000 >@@ -248,6 +248,14 @@ > assertEquals( Boolean.TRUE, compositeInitState[ 0 ] ); > } > >+ public void testRenderDisposed() { >+ Display display = new Display(); >+ display.dispose(); >+ RWTFixture.fakeNewRequest(); >+ RWTFixture.executeLifeCycleFromServerThread(); >+ // ensure that life cycle execution succeeds with disposed display >+ } >+ > public void testFocusControl() { > Display display = new Display(); > Shell shell = new Shell( display, SWT.NONE );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 262089
: 134347