--- old/src/share/classes/java/util/jar/Manifest.java 2014-08-09 00:43:10.220874007 -0700 +++ new/src/share/classes/java/util/jar/Manifest.java 2014-08-09 00:43:09.944863505 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,6 +25,7 @@ package java.util.jar; +import java.io.ByteArrayInputStream; import java.io.FilterInputStream; import java.io.DataOutputStream; import java.io.InputStream; @@ -80,6 +81,14 @@ } /** + * Used by the VM to create a Manifest object from input bytes. + */ + private static Manifest getManifest(byte buf[]) throws IOException { + ByteArrayInputStream is = new ByteArrayInputStream(buf); + return new Manifest(is); + } + + /** * Returns the main Attributes for the Manifest. * @return the main Attributes for the Manifest */