Bug 380892 - META-INF/MANIFEST.MF not found by JarInputStream()
Summary: META-INF/MANIFEST.MF not found by JarInputStream()
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Runtime (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-29 08:48 EDT by Michael Cramer CLA
Modified: 2012-05-29 08:48 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cramer CLA 2012-05-29 08:48:11 EDT
Build Identifier: aspectjrt-1.6.12

when i try to read the MANIFEST.MF from the aspectjrt-1.6.12.jar file i got a null as Manifest. I tested many different jars, also own created jars and only with this jar the problem exists. I discovered this, while playing around with OneJar that tries to load the MANIFEST.MF of all included libraries.

Reproducible: Always

Steps to Reproduce:
sample code:

import java.io.FileInputStream;
import java.io.IOException;
import java.util.jar.JarInputStream;

public class test {
    public static void main(String[] args) throws IOException {
        final FileInputStream fileInputStream = new FileInputStream("S:\\aspectjrt-1.6.12.jar");
        System.err.println(new JarInputStream(fileInputStream).getManifest());
    }
}