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

tracing-tests hangs on Java 21 #455

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

namenu
Copy link
Contributor

@namenu namenu commented Feb 12, 2024

com.walmartlabs.lacinia.tracing-test hangs with following errors.

Exception in thread "Thread-4" Exception in thread "Thread-5" java.lang.IllegalArgumentException: No matching method sleep found taking 1 args
        at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:154)
        at clojure.lang.Reflector.invokeStaticMethod(Reflector.java:332)
        at com.walmartlabs.lacinia.tracing_test$resolve_slow$f__22220.invoke(tracing_test.clj:44)
        at clojure.lang.AFn.run(AFn.java:22)
        at java.base/java.lang.Thread.run(Thread.java:1583)
java.lang.IllegalArgumentException: No matching method sleep found taking 1 args
        at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:154)
        at clojure.lang.Reflector.invokeStaticMethod(Reflector.java:332)
        at com.walmartlabs.lacinia.tracing_test$resolve_slow$f__22220.invoke(tracing_test.clj:44)
        at clojure.lang.AFn.run(AFn.java:22)
        at java.base/java.lang.Thread.run(Thread.java:1583)

Since Java 20 introcuded overloaded Thread/sleep with 1 arg, you need to add a type hint in your clojure code.

@hlship hlship added the bug label Feb 13, 2024
@hlship hlship added this to the 1.2.3 milestone Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants