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

Unit test DefaultJobClassNameProviderTest#assertGetLambdaJobName fails on OpenJDK 21 #2370

Closed
linghengqian opened this issue Nov 21, 2023 · 3 comments · Fixed by #2431
Closed
Assignees
Labels

Comments

@linghengqian
Copy link
Member

linghengqian commented Nov 21, 2023

Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ElasticJob did you use?

Expected behavior

  • Unit test DefaultJobClassNameProviderTest#assertGetLambdaJobName executes successfully on JDK 21.

Actual behavior

Reason analyze (If you can)

  • There is currently no solution. I'm still not sure what causes this unit test to fail on OpenJDK 21, and I can't find the corresponding JEP change.

Steps to reproduce the behavior.

  • Null.

Example codes for reproduce this issue (such as a github link).

@Test
@DisabledForJreRange(min = JRE.JAVA_21, max = JRE.OTHER)
void assertGetLambdaJobName() {
    JobClassNameProvider jobClassNameProvider = new DefaultJobClassNameProvider();
    FooJob lambdaFooJob = shardingContext -> {
    };
    String result = jobClassNameProvider.getJobClassName(lambdaFooJob);
    assertThat(result, is("org.apache.shardingsphere.elasticjob.kernel.internal.setup.DefaultJobClassNameProviderTest$$Lambda$"));
}
@linghengqian
Copy link
Member Author

@linghengqian
Copy link
Member Author

  • I am working on the current issue.

@linghengqian
Copy link
Member Author

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

Successfully merging a pull request may close this issue.

1 participant