1.1 --- a/emul/mini/src/main/java/java/net/URL.java Thu Jan 31 18:45:00 2013 +0100
1.2 +++ b/emul/mini/src/main/java/java/net/URL.java Fri Feb 01 14:16:26 2013 +0100
1.3 @@ -25,6 +25,7 @@
1.4
1.5 package java.net;
1.6
1.7 +import java.io.ByteArrayInputStream;
1.8 import java.io.IOException;
1.9 import java.io.InputStream;
1.10 import org.apidesign.bck2brwsr.core.JavaScriptBody;
1.11 @@ -962,7 +963,11 @@
1.12 if (is != null) {
1.13 return is;
1.14 }
1.15 - throw new IOException();
1.16 + byte[] arr = (byte[]) getContent(new Class[] { byte[].class });
1.17 + if (arr == null) {
1.18 + throw new IOException();
1.19 + }
1.20 + return new ByteArrayInputStream(arr);
1.21 }
1.22
1.23 /**