[ 
https://issues.apache.org/jira/browse/MJAVADOC-797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maksim Timonin updated MJAVADOC-797:
------------------------------------
    Description: 
The behavior of the "-excludePackageNames" 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 excludePackageNames 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.

 

  was:
The behavior of the excludePackageNames 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 excludePackageNames 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.

 


> 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
>            Priority: Major
>
> The behavior of the "-excludePackageNames" 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 excludePackageNames 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