Skip to content

Commit

Permalink
Enable -parameters
Browse files Browse the repository at this point in the history
Fixes #3797.
  • Loading branch information
marcphilipp committed Apr 29, 2024
1 parent bd07d9c commit b0636b0
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -238,7 +238,9 @@ tasks.compileJava {
// See: https://docs.oracle.com/en/java/javase/12/tools/javac.html
options.compilerArgs.addAll(listOf(
"-Xlint:all", // Enables all recommended warnings.
"-Werror" // Terminates compilation when warnings occur.
"-Werror", // Terminates compilation when warnings occur.
// Required for compatibility with Java 8's reflection APIs (see https://github.com/junit-team/junit5/issues/3797).
"-parameters", // Generates metadata for reflection on method parameters.
))
}

Expand Down

0 comments on commit b0636b0

Please sign in to comment.