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

Add a test for invalid package annotations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • 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.

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

                Created:
                Updated:
                Resolved: