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 197296 Details for
Bug 347573
Graphics_Test lets Fixture#tearDown() fail by leaving open an inputStreams
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]
Proposed fix for Graphics_Test#testGetImageWithClassLoader
clipboard.txt (text/plain), 1.66 KB, created by
RĂ¼diger Herrmann
on 2011-06-03 05:40:10 EDT
(
hide
)
Description:
Proposed fix for Graphics_Test#testGetImageWithClassLoader
Filename:
MIME Type:
Creator:
RĂ¼diger Herrmann
Created:
2011-06-03 05:40:10 EDT
Size:
1.66 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.rwt >Index: src/org/eclipse/swt/internal/graphics/ImageFactory.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt/org.eclipse.rap.rwt/src/org/eclipse/swt/internal/graphics/ImageFactory.java,v >retrieving revision 1.9 >diff -u -r1.9 ImageFactory.java >--- src/org/eclipse/swt/internal/graphics/ImageFactory.java 2 Jun 2011 20:48:56 -0000 1.9 >+++ src/org/eclipse/swt/internal/graphics/ImageFactory.java 3 Jun 2011 09:38:10 -0000 >@@ -11,6 +11,7 @@ > ******************************************************************************/ > package org.eclipse.swt.internal.graphics; > >+import java.io.IOException; > import java.io.InputStream; > > import org.eclipse.rwt.RWT; >@@ -18,6 +19,8 @@ > import org.eclipse.rwt.internal.util.*; > import org.eclipse.rwt.internal.util.SharedInstanceBuffer.IInstanceCreator; > import org.eclipse.rwt.resources.IResourceManager; >+import org.eclipse.swt.SWT; >+import org.eclipse.swt.SWTException; > import org.eclipse.swt.graphics.Device; > import org.eclipse.swt.graphics.Image; > >@@ -67,7 +70,13 @@ > > private Image createImage( String path, ClassLoader imageLoader ) { > InputStream inputStream = getInputStream( path, imageLoader ); >- return createImage( null, path, inputStream ); >+ Image result = createImage( null, path, inputStream ); >+ try { >+ inputStream.close(); >+ } catch( IOException ioe ) { >+ throw new SWTException( SWT.ERROR_IO, ioe.getMessage() ); >+ } >+ return result; > } > > private static Image createImageInstance( Device device, InternalImage internalImage ) {
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 347573
: 197296