[
https://issues.apache.org/jira/browse/MJAR-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17957281#comment-17957281
]
Matthias Bünger commented on MJAR-212:
--------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-jar-plugin#366|https://github.com/apache/maven-jar-plugin/issues/366].
> AIOOB in AbstractZipArchiver on Java9 EA (jigsaw)
> -------------------------------------------------
>
> Key: MJAR-212
> URL: https://issues.apache.org/jira/browse/MJAR-212
> Project: Maven JAR Plugin (Moved to GitHub Issues)
> 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
(v8.20.10#820010)