Dawid Weiss created MJAR-212: -------------------------------- Summary: AIOOB in AbstractZipArchiver on Java9 EA (jigsaw) Key: MJAR-212 URL: https://issues.apache.org/jira/browse/MJAR-212 Project: Maven JAR Plugin Issue Type: Bug Reporter: Dawid Weiss Priority: Blocker
Java9 changed the {{java.version}} property's naming scheme (see http://openjdk.java.net/jeps/223). I tried our projects with build {{9-ea+112}} and plexus jar archiver fails with an AIIOOB, specifically on this line: {code} private static final boolean isJava7OrLower = Integer.parseInt(System.getProperty("java.version").split("\\.")[1]) <= 7; {code} https://github.com/sonatype/plexus-archiver/blob/master/src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java#L116 The reason seems obvious. The fix would be based on better version number parsing (see the JEP). -- This message was sent by Atlassian JIRA (v6.3.4#6332)