Project: SWT
Bug 70160 Image(Device, InputStream) throws incorrect/unspec'd exception
Reported: 2004-07-15 16:48:55 | Status: resolved fixed

The existing JUnit test that attempts to load an empty file throws an exception with error code ERROR_UNSUPPORTED_FORMAT. Based on the spec I would have expected an ERROR_INVALID_IMAGE.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoader.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Image.java