question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tir38commented, Sep 24, 2019

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?

1reaction
ronshapirocommented, Nov 10, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found