flikas / idea-spring-boot-assistant

Spring Boot Assistant - IntelliJ-based plugin that assists you in developing spring boot applications
MIT License
42 stars 20 forks source link

[BUG]Java.lang.IllegalArgumentException: 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 =jrt:///Users/avinash/Library/Java/JavaVirtualMachines/openjdk-18.0.2.1/Contents/Home!/jdk.random (class java.lang.String), hashCode=435504001; object #2 =jrt:///Users/avinash/Library/Java/JavaVirtualMachines/openjdk-18.0.2.1/Contents/Home!/jdk.random (class java.lang.String), hashCode=435504001 #899

Open Avinash-FourKites opened 7 months ago

Avinash-FourKites commented 7 months ago

What happened

Please describe what you were doing when this exception occurred.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Version information

Exception

null

Stack trace ``` java.lang.IllegalArgumentException: 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 =jrt:///Users/avinash/Library/Java/JavaVirtualMachines/openjdk-18.0.2.1/Contents/Home!/jdk.random (class java.lang.String), hashCode=435504001; object #2 =jrt:///Users/avinash/Library/Java/JavaVirtualMachines/openjdk-18.0.2.1/Contents/Home!/jdk.random (class java.lang.String), hashCode=435504001 at gnu.trove.TObjectHash.throwObjectContractViolation(TObjectHash.java:343) at gnu.trove.THashMap.rehash(THashMap.java:343) at gnu.trove.THash.postInsertHook(THash.java:292) at gnu.trove.THashMap.put(THashMap.java:179) at in.oneton.idea.spring.assistant.plugin.suggestion.service.SuggestionServiceImpl.computeNewContainersToProcess(SuggestionServiceImpl.java:307) at in.oneton.idea.spring.assistant.plugin.suggestion.service.SuggestionServiceImpl.lambda$reindex$11(SuggestionServiceImpl.java:267) at com.intellij.openapi.project.DumbService.runReadActionInSmartMode$lambda$2(DumbService.kt:117) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:923) at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:76) at com.intellij.openapi.project.DumbService.runReadActionInSmartMode(DumbService.kt:110) at in.oneton.idea.spring.assistant.plugin.suggestion.service.SuggestionServiceImpl.lambda$reindex$12(SuggestionServiceImpl.java:260) at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:272) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at com.intellij.util.concurrency.ContextCallable.call(ContextCallable.java:29) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:24) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699) at java.base/java.lang.Thread.run(Thread.java:833) ```

Additional context

Add any other context about the problem here.