--- old/src/java.base/share/classes/sun/misc/URLClassPath.java 2015-05-22 11:32:39.255612745 -0700 +++ new/src/java.base/share/classes/sun/misc/URLClassPath.java 2015-05-22 11:32:39.131612749 -0700 @@ -39,6 +39,7 @@ import java.net.URLConnection; import java.net.URLStreamHandler; import java.net.URLStreamHandlerFactory; +import java.nio.ByteBuffer; import java.security.AccessControlException; import java.security.AccessController; import java.security.CodeSigner; @@ -799,6 +800,13 @@ public URL getCodeSourceURL() { return csu; } public InputStream getInputStream() throws IOException { return jar.getInputStream(entry); } + @Override + public ByteBuffer getByteBuffer() throws IOException + { return ByteBuffer.wrap(getBytes()); } + @Override + public byte[] getBytes() throws IOException { + return zipAccess.getBytes(jar, entry); + } public int getContentLength() { return (int)entry.getSize(); } public Manifest getManifest() throws IOException