Skip to content

Commit

Permalink
Temporarily revert manifest's 'Premain-Class' validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Tudone committed Sep 3, 2015
1 parent 3dc095b commit 02a1fc5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions capsule/src/main/java/Capsule.java
Expand Up @@ -2697,9 +2697,10 @@ private static boolean isLegalModeName(String name) {
}

private void validateManifest(Manifest manifest) {
if (!Capsule.class.getName().equals(manifest.getMainAttributes().getValue(ATTR_PREMAIN_CLASS)))
throw new IllegalStateException("Capsule manifest must specify " + Capsule.class.getName()
+ " in the " + ATTR_PREMAIN_CLASS + " attribute.");
// TODO @circlespainter: fix and adjust testsuite
// if (!Capsule.class.getName().equals(manifest.getMainAttributes().getValue(ATTR_PREMAIN_CLASS)))
// throw new IllegalStateException("Capsule manifest must specify " + Capsule.class.getName()
// + " in the " + ATTR_PREMAIN_CLASS + " attribute.");

if (manifest.getMainAttributes().getValue(ATTR_CLASS_PATH) != null)
throw new IllegalStateException("Capsule manifest contains a " + ATTR_CLASS_PATH + " attribute."
Expand Down

0 comments on commit 02a1fc5

Please sign in to comment.