Running into an interesting error on our CI with dokka coming from Trove, and curious before I file an issue if this is something wrong on our end first. I can't reproduce it locally, and the error is pretty non-descript
Execution failed for task ':libraries:model:dokkaHtmlPartial'.
> Equal objects must have equal hashcodes. During rehashing, Trove discovered that the following two objects claim to be equal (as in java.lang.Object.equals() or TObjectHashingStrategy.equals()) but their hashCodes (or those calculated by your TObjectHashingStrategy) are not equal.This violates the general contract of java.lang.Object.hashCode(). See bullet point two in that method's documentation. object #1 =slack.featureflag.legacy (class org.jetbrains.kotlin.name.FqName), hashCode=-2006810893; object #2 =slack.featureflag.legacy (class org.jetbrains.kotlin.name.FqName), hashCode=-2006810893
In this case, I found a java file javadoc that appeared to refer to a now-nonexistent enum member in that package and removing that resolved it. After that though, I encountered a similar but different error on
java.util.String
Execution failed for task ':services:mock-testing:dokkaHtmlPartial'.
> Equal objects must have equal hashcodes. During rehashing, Trove discovered that the following two objects claim to be equal (as in java.lang.Object.equals() or TObjectHashingStrategy.equals()) but their hashCodes (or those calculated by your TObjectHashingStrategy) are not equal.This violates the general contract of java.lang.Object.hashCode(). See bullet point two in that method's documentation. object #1 = (class java.lang.String), hashCode=0; object #2 = (class java.lang.String), hashCode=0
And don't see any similar or blatantly obvious issues with the java source files in the project 🤔