Details
-
Type:
Enhancement
-
Status: New
-
Priority:
P4
-
Resolution: Unresolved
-
Affects Version/s: 8, 9, 10, 11
-
Fix Version/s: None
-
Component/s: core-libs
-
Labels:
-
Subcomponent:
Description
A DESCRIPTION OF THE PROBLEM :
It would be extremely useful if there were an annotation that took another annotation's class as the value, and when applied to a package-info.java it would take the specified annotation and apply it to sub package package-info's as well.
This would prevent the need to create a package-info for every package in a project or rely on external means such as a maven plugin.
Example:
@ApplyToChildren(Deprecated.class)
package foo.bar;
It would be extremely useful if there were an annotation that took another annotation's class as the value, and when applied to a package-info.java it would take the specified annotation and apply it to sub package package-info's as well.
This would prevent the need to create a package-info for every package in a project or rely on external means such as a maven plugin.
Example:
@ApplyToChildren(Deprecated.class)
package foo.bar;