Have I found a bug in Apple's JRE?

Discussion in 'Mac Programming' started by wrldwzrd89, Jan 4, 2009.

  1. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #1
    For some odd reason, trying to load any of the images in the attached zip file using this code:
    Code:
    final URL url = GraphicsManager.class.getResource("/net/worldwizard/fantastle/resources/graphics/objects/" + normalName + ".png");
    final BufferedImage image = ImageIO.read(url);
    Where normalName is the name of the image file (without the extension), causes an EOFException, on the second line. Other images work just fine, and resaving the offending images doesn't seem to help.

    I'm using the latest Java 5 on Mac OS X 10.5.6.
     
  2. wrldwzrd89 thread starter macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    Update: I was able to work around the problem by stripping the PNG images of their metadata.
     

Share This Page