Reproducer for different behavior of exclude for java8 and java11#289
Open
timoninmaxim wants to merge 1 commit intoapache:masterfrom
Open
Reproducer for different behavior of exclude for java8 and java11#289timoninmaxim wants to merge 1 commit intoapache:masterfrom
timoninmaxim wants to merge 1 commit intoapache:masterfrom
Conversation
8edeca7 to
074d42d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In the test I want to prepare javadocs only for the class org.apache.project.IncludeClass. All other classes located in packages io and org.apache.internal should be skipped.
Configuration I use is the following:
It works well for java8, but for java11 (actually since java9) it doesn't exclude the class org.apache.internal.subpackage.subsubpackage.ExcludeInternalSubSubClass.
I tried comment the "subpackages" setting and now it excludes the ExcludeInternalSubSubClass. This behavior is not obvious for me, I expect that exclusion rules should not depend on the "subpackages" setting.
I debug it and found:
javadoc -sourcepath ./src/main/java -subpackages org.apache -exclude org.apache.internal -d javadocfor both java version and it returns different result. I'm not sure is it expected behavior, but I'd expect the javadoc plugin will adjust for different java versions.