TimeAndSpaceIO / SmoothieMap

A gulp of low latency Java
295 stars 30 forks source link

java.lang.ClassCastException: net.openhft.smoothie.Segment63 cannot be cast to net.openhft.smoothie.Segment #5

Closed noahtaylor closed 4 years ago

noahtaylor commented 6 years ago

I am getting the following exception when I am running a unit test. Any ideas?

java.lang.ClassCastException: net.openhft.smoothie.Segment63 cannot be cast to net.openhft.smoothie.Segment at net.openhft.smoothie.SmoothieMap.makeSegment(SmoothieMap.java:589) at net.openhft.smoothie.SmoothieMap.initSegments(SmoothieMap.java:446) at net.openhft.smoothie.SmoothieMap.(SmoothieMap.java:429) at net.openhft.smoothie.SmoothieMap.(SmoothieMap.java:411)

noahtaylor commented 6 years ago

I should also mention this issue only occurs when running the build on TeamCity, I cannot reproduce the issue locally.

noahtaylor commented 6 years ago

Ok so I was able to address the issue by removing PowerMockRunner from my unit tests. Not sure why that would have caused an issue. Perhaps due to class loader being different?

leventov commented 4 years ago

This should now be fixed in SmoothieMap 2.0.1