https://kotlinlang.org logo
#dokka
Title
# dokka
j

Jonathan Lennox

09/26/2023, 9:33 PM
I just updated my dokka to 1.9.0, and I'm (intermittently) getting an error that looks like:
Copy code
[ERROR] Failed to execute goal org.jetbrains.dokka:dokka-maven-plugin:1.9.0:dokka (default) on project jitsi-utils: Execution default of goal org.jetbrains.dokka:dokka-maven-plugin:1.9.0:dokka failed: 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 -> [Help 1]
The objects and hashcode value it shows varies. Any idea how I can fix and/or workaround this?
1
For example in another case it had
Copy code
object #1 =java.util (class org.jetbrains.kotlin.name.FqName), hashCode=-888372146; object #2 =java.util (class org.jetbrains.kotlin.name.FqName), hashCode=-888372146
m

Mikael Stockman

09/27/2023, 6:31 AM
Seems to be the same issue as discussed here: https://kotlinlang.slack.com/archives/C0F4UNJET/p1695141083039299 If indeed the same, then this issue will be resolved in dokka 1.9.10
j

Jonathan Lennox

09/27/2023, 1:14 PM
Is there a planned release date for 1.9.10 yet?
1.9.10-dev-234 does indeed fix my problem
i

Ignat Beresnev

10/10/2023, 2:37 PM
We've just started regression testing 1.9.10, so hopefully it should be out in a week or two, depending on how it goes 🙂
4 Views