Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8204140

Annotation that makes package-info.java annotations auto-applied to sub packages

XMLWordPrintable

      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;


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: