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

Two javac tests have bad jtreg `@clean` tags

    XMLWordPrintable

Details

    • b12

    Backports

      Description

        The following shows invalid use of the `@clean` directive.

        grep -r 'clean.*[A-Za-z][*]' open/test/langtools/tools/javac
        open/test/langtools/tools/javac/8074306/TestSyntheticNullChecks.java: * @clean TestSyntheticNullChecks*
        open/test/langtools/tools/javac/StringConcat/TestIndyStringConcat.java: * @clean TestIndyStringConcat*
        open/test/langtools/tools/javac/StringConcat/TestIndyStringConcat.java: * @clean TestIndyStringConcat*
        open/test/langtools/tools/javac/StringConcat/TestIndyStringConcat.java: * @clean TestIndyStringConcat*
        open/test/langtools/tools/javac/StringConcat/TestIndyStringConcat.java: * @clean TestIndyStringConcat*
        open/test/langtools/tools/javac/StringConcat/TestIndyStringConcat.java: * @clean TestIndyStringConcat*

        The name should either be a full class name or `package.*`. The use of `*` for globbing has never been supported.

        These tests fail under jtreg 7 (now in the early stages of development) because the class name now gives rise to `InvalidPathException` on Windows, because jtreg now uses `java.nio.file.Path` internally instead of `java.io.File`.

        Attachments

          Issue Links

            Activity

              People

                shade Aleksey Shipilev
                jjg Jonathan Gibbons
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: