Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325506 - Dmoz favicon ok in WinXP, gags "org.eclipse.swt.graphics.ImageLoader"
Summary: Dmoz favicon ok in WinXP, gags "org.eclipse.swt.graphics.ImageLoader"
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 13:48 EDT by Missing name CLA
Modified: 2021-11-29 12:35 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.