Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8287885 Local classes cause ClassLoader error if the type names are similar but not same
  3. JDK-8314673

Release Note: Generate "output file clash" Warning when an Output File is Overwritten During Compilation

XMLWordPrintable

      Prior to JDK 21, the `javac` compiler was overwriting some output files during compilation. This can occur, for example, on case-insensitive filesystems.

      Starting from JDK 21 a new compiler option: `-Xlint:output-file-clash` has been added to the `javac` compiler. This new option should provide a way for users experiencing this problem to convert what is currently a runtime error into a compile-time warning (or error with `-Werror`). This new compiler option enables output file clash detection. The term "output file" covers class files, source files, and native header files.

            vromero Vicente Arturo Romero Zaldivar
            vromero Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: