Compilation error when @Deprecated annotation is present and @deprecated javadoc tag

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 9
    • Component/s: tools
    • None

      javac reports a compilation error when @Deprecated annotation is present and @deprecated javadoc tag. There seems to be some confusion between the annotation and the javadoc tag.

      package-info.java:5: error: modifier deprecated not allowed here
      package xx;
      ^
      1 error


      /**
       * @deprecated removed
       */
      @Deprecated()
      package xx;

            Assignee:
            Srikanth Adayapalam (Inactive)
            Reporter:
            Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: