Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation fails with jmh-generator-annprocess:1.37 #260

Open
sergeykad opened this issue Nov 30, 2023 · 1 comment
Open

Compilation fails with jmh-generator-annprocess:1.37 #260

sergeykad opened this issue Nov 30, 2023 · 1 comment

Comments

@sergeykad
Copy link

Describe the bug
Running build with jmhAnnotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess:1.37' causes compilation failure due to missing shouldYield field in the org.openjdk.jmh.runner.InfraControl class.

Downgrading back to version 1.36 resolves the issue.

                if (control.shouldYield) Thread.yield();
                           ^
  symbol:   variable shouldYield
  location: variable control of type InfraControl

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade to jmh-generator-annprocess:1.37
  2. Run build
  3. See the error mentioned above
@sergeykad
Copy link
Author

Adding the dependencies listed below solved the issue, but according to the documentation it should have been optional.

    jmh 'org.openjdk.jmh:jmh-core:1.37'
    jmh 'org.openjdk.jmh:jmh-generator-annprocess:1.37'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant