Fork me on GitHub

Is class java.util.HashMap$Node cannot be cast to class java.util.HashMap$TreeNode exception during classpath building an example of the maven-fetching concurrency problem that’s been malingering?


I have a stacktrace, wondering where to put it

Alex Miller (Clojure team)17:03:48

It is, don't think I need another stack trace but there are some ask questions for it


The stacktrace: It happens in my CI, maybe in 0.1% of our runs (one CI run has 10 clj commands, it occurs once for each 100 CI runs)


yep I have the same stack


We use azul jdk 11 with clojure from

Alex Miller (Clojure team)20:03:44

ok, there is now a prerelease out to address this problem (basically separates the cache for these shared objects into per-thread caches to avoid sharing the mutable state). I'd greatly appreciate any testing you can provide!

Alex Miller (Clojure team)22:03:20

@U09R86PA4 @U2J4FRT2T any chance either of you have tried the prerelease?


I haven’t. I’ll roll it out.