| Summary: | Dmoz favicon ok in WinXP, gags "org.eclipse.swt.graphics.ImageLoader" | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Missing name <bjhellstrom> |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | remy.suen |
| Version: | 4.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
Build Identifier: M20100211-1343 package test; import java.net.HttpURLConnection; import java.net.URL; import org.eclipse.swt.graphics.ImageData; import org.eclipse.swt.graphics.ImageLoader; public class ImageLoaderTest { private static final String DMOZ_FAVICON_URL = "http://www.dmoz.org/img/mozilla.ico"; private static final String GOOGLE_FAVICON_URL = "http://www.google.com/favicon.ico"; /** * @param args */ public static void main( String[] args) { try { HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(DMOZ_FAVICON_URL).openConnection(); httpURLConnection.connect(); ImageData[] imageDatas = new ImageLoader().load(httpURLConnection.getInputStream()); System.out.printf("Good. width=%d, height=%d%n", imageDatas[0].width, imageDatas[0].height); } catch (Exception ex) { System.out.println("Boink."); ex.printStackTrace(); } } } Reproducible: Always Steps to Reproduce: 1.Type in program above (must be networked) 2.Run it. 3.Note that you can use firefox (or IE) to DL the favicon from the URL "http://www.dmoz.org/img/mozilla.ico" and the icon appears to be ok.