Skip to content

Conversation

@hezhangjian
Copy link
Member

Motivation

As of JDK 21, the methods suspend and resume on the Thread class throw UnsupportedOperationException.

Changes

  1. Added junit5 annotation @EnabledForJreRange(max = JRE.JAVA_17)(It's modern and better than junit4) to tests that use suspend and resume, effectively disabling these tests on JDK versions higher than 17 where these methods are not supported.
  2. Migrate this test file to junit5

Signed-off-by: ZhangJian He <shoothzj@gmail.com>
@hezhangjian
Copy link
Member Author

@dlg99 @eolivelli @hangc0276 @merlimat @nicoloboschi @zhaijack PTAL

@hezhangjian hezhangjian merged commit 99776d4 into apache:master Apr 28, 2024
@hezhangjian hezhangjian deleted the java21-zk-expire branch April 28, 2024 01:09
@hangc0276 hangc0276 added this to the 4.18.0 milestone May 25, 2024
zhiheng123 pushed a commit to zhiheng123/bookkeeper that referenced this pull request Jun 5, 2024
Signed-off-by: ZhangJian He <shoothzj@gmail.com>
zhiheng123 pushed a commit to zhiheng123/bookkeeper that referenced this pull request Jun 7, 2024
Signed-off-by: ZhangJian He <shoothzj@gmail.com>
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
Signed-off-by: ZhangJian He <shoothzj@gmail.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.

3 participants