Details
Description
If a package has package-info.java as the first file in the directory then annotations in that file are not added to JavaPackage object that is created.
Example project with a failing test is attached.
Activity
Robert Scholte
made changes -
Field | Original Value | New Value |
---|---|---|
Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
Assignee | Robert Scholte [ rfscholte ] |
Robert Scholte
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Fix Version/s | 2.0 [ 15636 ] | |
Resolution | Fixed [ 1 ] |
Actually this is a feature-request.
QDox generates a Model from package-info.java as if it would just a normal JavaClass. Only the package of a JavaClass keeps its annotations.
So when calling builder.getPackages() QDox should first check if there's a package-info.java. Also this file shouldn't be exposed under builder.getClasses()