You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Martin Schelldorfer (Jira)" <ji...@apache.org> on 2019/10/17 06:42:00 UTC

[jira] [Created] (MJAVADOC-624) tagletArtifacts throws exception in case artifact is a Java 9+ module

Martin Schelldorfer created MJAVADOC-624:
--------------------------------------------

             Summary: tagletArtifacts throws exception in case artifact is a Java 9+ module
                 Key: MJAVADOC-624
                 URL: https://issues.apache.org/jira/browse/MJAVADOC-624
             Project: Maven Javadoc Plugin
          Issue Type: Bug
    Affects Versions: 3.1.1
            Reporter: Martin Schelldorfer


Auto-detect the class names for taglet artifacts fails in case artifact is a Java 9+ module.

 

When using configuration parameter tagletArtifacts, taglet classes are auto-detected.

JavadocUtil.getTagletClassNames() is scanning all classes in jar file (artifact).

Java 9+ modules contain the class module-info.class in jar file.

When trying to load module-info.class, the exception "java.lang.NoClassDefFoundError: module-info is not a class because access_flag ACC_MODULE is set" is thrown.

 

Class module-info has to be skipped in scanning loop.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)