public MergeableManifest(InputStream in) throws IOException { try { Field field = Manifest.class.getDeclaredField("attr"); field.setAccessible(true); field.set(this, new OrderAwareAttributes()); } catch (Exception e) { throw new IllegalStateException(e); } read(in); // hack: reconstruct linebreaks addRequiredBundles(Collections.<String>emptySet()); addExportedPackages(Collections.<String>emptySet()); addImportedPackages(Collections.<String>emptySet()); modified = false; }
public MergeableManifest(InputStream in) throws IOException { try { Field field = Manifest.class.getDeclaredField("attr"); field.setAccessible(true); field.set(this, new OrderAwareAttributes()); } catch (Exception e) { throw new IllegalStateException(e); } read(in); // hack: reconstruct linebreaks addRequiredBundles(Collections.<String>emptySet()); addExportedPackages(Collections.<String>emptySet()); addImportedPackages(Collections.<String>emptySet()); modified = false; }