Skip to content

Fix tests for Java 17+#112

Merged
jiaqi merged 1 commit into
jiaqi:mainfrom
nyg:fix_jdk21_build
Apr 26, 2025
Merged

Fix tests for Java 17+#112
jiaqi merged 1 commit into
jiaqi:mainfrom
nyg:fix_jdk21_build

Conversation

@nyg
Copy link
Copy Markdown
Contributor

@nyg nyg commented Feb 2, 2024

Hello,

I have not able to run mvn clean install with Java 21. The issue was due to unit tests failing. I fixed it by:

  1. updating jmock, Java 11 support was added in 2.10.0,
  2. removing jmock-legacy which used cglib by jmock-imposters which uses byte-buddy,
  3. specify latest version of byte-buddy for Java 11+ support.

So now jmxterm can be built using Java 21, but running it still fails when listing JVM (due to other issues).

Best,
nyg

@nyg nyg changed the title Fix build for Java 21 Fix tests for Java 17+ Feb 3, 2024
@nyg
Copy link
Copy Markdown
Contributor Author

nyg commented Mar 5, 2024

Hello @jiaqi,

Did you have some time to review my PRs? Please let me know if there's anything I can improve or change.

Thanks a lot!

Best,
nyg

@nyg
Copy link
Copy Markdown
Contributor Author

nyg commented Apr 3, 2024

Hello @jiaqi, thanks for approving! Could you merge too?

@nyg nyg mentioned this pull request Apr 3, 2024
@nyg
Copy link
Copy Markdown
Contributor Author

nyg commented Jan 20, 2025

Any news? Thanks! @jiaqi

@jiaqi jiaqi merged commit 13d3706 into jiaqi:main Apr 26, 2025
@nyg nyg deleted the fix_jdk21_build branch April 27, 2025 11:44
nyg pushed a commit to nyg/jmxsh that referenced this pull request Sep 7, 2025
Bumps eclipse-temurin from 24_36-jre-alpine to 24.0.1_9-jre-alpine.

---
updated-dependencies:
- dependency-name: eclipse-temurin
  dependency-version: 24.0.1_9-jre-alpine
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants