Maksim Timonin created MJAVADOC-797:
---------------------------------------

             Summary: Exclusion rules works differently for java8 and java11
                 Key: MJAVADOC-797
                 URL: https://issues.apache.org/jira/browse/MJAVADOC-797
             Project: Maven Javadoc Plugin
          Issue Type: Bug
    Affects Versions: 3.7.0
            Reporter: Maksim Timonin


The behavior of the filtering differs for java8 and java11 in case of using an 
option "-subpackages".

Reproducer is available in the PR:

 [1] [https://github.com/apache/maven-javadoc-plugin/pull/289]

There are possibly, 2 bugs:

1. Behavior for exclusion is actually depends on whether the "subpackages" 
setting is specified or not - there are different patterns for exclusion used, 
see patterns in *JavadocUtil#getExcludedPackages* and 
*JavadocUtil#getIncludedFiles*

2. In case of using "subpackages" the scenario in the PR [1], the plugin 
prepares equal options for the javadoc util for both java versions. But 
actually the output for the javadoc util differs (depends on the java version). 
I'm not sure is it an expected behavior for the javadoc util, but I'd expect 
the maven-javadoc-plugin will adjust for different java versions and provides 
equal exclusion result.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to