diff -r 3238bffeaf12 -r ce34fdc36fac rt/aot/src/main/java/org/apidesign/bck2brwsr/aot/Bck2BrwsrJars.java --- a/rt/aot/src/main/java/org/apidesign/bck2brwsr/aot/Bck2BrwsrJars.java Sat Sep 13 16:11:42 2014 +0200 +++ b/rt/aot/src/main/java/org/apidesign/bck2brwsr/aot/Bck2BrwsrJars.java Sun Sep 14 22:33:35 2014 +0200 @@ -81,7 +81,11 @@ } @Override public InputStream get(String resource) throws IOException { - InputStream is = jf.getInputStream(new ZipEntry(resource)); + InputStream is = getConverted(resource); + if (is != null) { + return is; + } + is = jf.getInputStream(new ZipEntry(resource)); return is == null ? super.get(resource) : is; } } @@ -198,13 +202,20 @@ this.proc = p; } - @Override - public InputStream get(String name) throws IOException { + protected final InputStream getConverted(String name) throws IOException { byte[] arr = converted.get(name); if (arr != null) { return new ByteArrayInputStream(arr); } - + return null; + } + + @Override + public InputStream get(String name) throws IOException { + InputStream is = getConverted(name); + if (is != null) { + return is; + } Enumeration en = Bck2BrwsrJars.class.getClassLoader().getResources(name); URL u = null; while (en.hasMoreElements()) {