[2.13] - warning: [classfile] MethodParameters attribute introduced in version 52.0 class files is ignored in version 51.0 class files
See original GitHub issueError:
$ 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
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (2 by maintainers)
Top Results From Across the Web
Class file has wrong version 52.0, should be 50.0
I'm trying to compile my project in IntelliJ idea. I'm using a class in an external jar file and on compilation receiving the...
Read more >javac should not add MethodParameters attributes to v51 and ...
X.class: warning: [classfile] MethodParameters attribute introduced in version 52.0 class files is ignored in version 51.0 class files ...
Read more >A brand new website interface for an even better experience!
[2.13] - warning: [classfile] MethodParameters attribute introduced in version 52.0 class files is ignored in version 51.0 class files.
Read more >How to Fix Unsupported major.minor Version 52.0 Error in Java
Java's unsupported major.minor version error happens when a class is compiled using a higher version JDK but executed on a lower version ......
Read more >The class File Format - Java Community Process
13) attributes. A Java virtual machine implementation is required to silently ignore any or all attributes in the attributes table of a. ClassFile...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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 tojavac
by default.