-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
When your project uses a module-info.java
class, using @IndexSubclasses
on the package-info.java
class does not work out of the box. According to the javadoc:
Additionally, and except for the special case where the resource has a name ending with ".class", this method will only find resources in packages of named modules when the package is opened unconditionally (even if the caller of this method is in the same module as the resource).
This means that the user needs to add opens package.containing.package.info
to the module-info.java
in order for the ClassIndex.getPackageClasses
function to work. I ran into this problem myself, so I thought it would be useful to document for others.
Metadata
Metadata
Assignees
Labels
No labels