Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903093

Detect/report invalid class names given to @clean action

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • jtreg7.0
    • None
    • tools
    • None

      CODETOOLS-7903091 updated jtreg to use `Path` instead of `File`. This resulted in some JDK tests failing on Windows, because `InvalidPathException` was thrown. (JDK-8281507)

      It would be better to check the validity of the class name more explicitly. These days, `SourceVersion.isName` would be an excellent way to check the name.
      https://docs.oracle.com/en/java/javase/11/docs/api/java.compiler/javax/lang/model/SourceVersion.html#isName(java.lang.CharSequence,javax.lang.model.SourceVersion)

            cstein Christian Stein
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: