Add a test for invalid package annotations

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: tools
    • b28
    • Verified

        During work for JDK-8049127 for creation of golden files, it was discovered that a new negative test can be added to have invalid annotations on packages on similar lines as existing test tools/javac/annotations/neg/Package.java.

        Test code:
        Test.java has reference to package bar.
        bar dir has a package-info.java which has java.lang.annotation.Documented annotation on package.bar.

              Assignee:
              Sonali Goel (Inactive)
              Reporter:
              Sonali Goel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: