dagger: [2.13] - warning: [classfile] MethodParameters attribute introduced in version 52.0 class files is ignored in version 51.0 class files

Error:

$ gradlew assembleDebug

> Task :compileDebugJavaWithJavac FAILED
/Users/<>/.gradle/caches/modules-2/files-2.1/com.google.dagger/dagger/2.13/37dc0fc55b65aa10f6e1edc4691a1231c904cfb1/dagger-2.13.jar(dagger/internal/DoubleCheck.class): warning: [classfile] MethodParameters attribute introduced in version 52.0 class files is ignored in version 51.0 class files
/Users/<>/.gradle/caches/modules-2/files-2.1/com.google.dagger/dagger/2.13/37dc0fc55b65aa10f6e1edc4691a1231c904cfb1/dagger-2.13.jar(dagger/internal/Preconditions.class): warning: [classfile] MethodParameters attribute introduced in version 52.0 class files is ignored in version 51.0 class files
/Users/<>/.gradle/caches/modules-2/files-2.1/com.google.dagger/dagger/2.13/37dc0fc55b65aa10f6e1edc4691a1231c904cfb1/dagger-2.13.jar(dagger/MembersInjector.class): warning: [classfile] MethodParameters attribute introduced in version 52.0 class files is ignored in version 51.0 class files
error: warnings found and -Werror specified
1 error
3 warnings


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 17s
17 actionable tasks: 17 executed

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15

Most upvoted comments

I’m late to the party here. But given this is fixed in JDK11, does that mean that this will not get fixed in Dagger classes until both Bazel is updated to work w/ JDK11 and Dagger is rebuilt with latest Bazel?

We built with a newer version of Bazel that passed the -parameters flag to javac by default.