Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325506

Summary: Dmoz favicon ok in WinXP, gags "org.eclipse.swt.graphics.ImageLoader"
Product: [Eclipse Project] Platform Reporter: Missing name <bjhellstrom>
Component: SWTAssignee: 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

Description Missing name CLA 2010-09-16 13:48:59 EDT
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.
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:09:56 EDT
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.
Comment 2 Eclipse Genie CLA 2021-11-29 12:35:59 EST
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.