EAP 110.137: Frequent Trove hashcode errors

Quite frequently with EAP 110.137 I'm getting errors like this:

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()) but their hashCodes (or those calculated by your TObjectHashingStrategy) are not equal.

I've tried invalidating caches but it seems to have had no effect. The error doesn't seem to be causing any visible problem though.

0

Please attach complete stack trace

On 10/21/2011 5:30 PM, Gordon Tyler wrote:

Quite frequently with EAP 110.137 I'm getting errors like this:

>

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()) but their hashCodes (or those calculated by your TObjectHashingStrategy) are not equal.

>

I've tried invalidating caches but it seems to have had no effect. The error doesn't seem to be causing any visible problem though.

>

---
Original message URL: http://devnet.jetbrains.net/message/5323609#5323609


0

Reported via exception reporter: http://ea.jetbrains.com/browser/ea_reports/305023

And here for good measure:

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()) 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 =PsiElementResolveResult: com; object #2 =PsiElementResolveResult: com: 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()) 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 =PsiElementResolveResult: com; object #2 =PsiElementResolveResult: com
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()) 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 =PsiElementResolveResult: com; object #2 =PsiElementResolveResult: com
     at gnu.trove.TObjectHash.throwObjectContractViolation(TObjectHash.java:310)
     at gnu.trove.THashSet.rehash(THashSet.java:197)
     at gnu.trove.THash.postInsertHook(THash.java:242)
     at gnu.trove.THashSet.add(THashSet.java:147)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$3.execute(FileReference.java:205)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$3.execute(FileReference.java:199)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.PackagePrefixFileSystemItem.processChildren(PackagePrefixFileSystemItem.java:180)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.processVariants(FileReference.java:329)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.innerResolveInContext(FileReference.java:199)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.innerResolve(FileReference.java:150)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$MyResolver.resolve(FileReference.java:561)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$MyResolver.resolve(FileReference.java:557)
     at com.intellij.psi.impl.source.resolve.ResolveCache$2.compute(ResolveCache.java:129)
     at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:134)
     at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:145)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.multiResolve(FileReference.java:134)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.resolves(PsiMultiReference.java:59)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.access$000(PsiMultiReference.java:36)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:42)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:37)
     at java.util.Arrays.mergeSort(Arrays.java:1270)
     at java.util.Arrays.sort(Arrays.java:1210)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.chooseReference(PsiMultiReference.java:78)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.resolve(PsiMultiReference.java:101)
     at com.intellij.codeInsight.TargetElementUtilBase.getReferenceOrReferencedElement(TargetElementUtilBase.java:266)
     at com.intellij.codeInsight.TargetElementUtil.getReferenceOrReferencedElement(TargetElementUtil.java:89)
     at com.intellij.codeInsight.TargetElementUtilBase.findTargetElement(TargetElementUtilBase.java:168)
     at com.intellij.codeInsight.TargetElementUtil.findTargetElement(TargetElementUtil.java:56)
     at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.findTargetElementsNoVS(GotoDeclarationAction.java:204)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler.getInfoAt(CtrlMouseHandler.java:389)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$1500(CtrlMouseHandler.java:84)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.doExecute(CtrlMouseHandler.java:552)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.access$1400(CtrlMouseHandler.java:479)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1$2$1.run(CtrlMouseHandler.java:536)
     at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:853)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1$2.run(CtrlMouseHandler.java:534)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:177)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:204)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:168)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1.run(CtrlMouseHandler.java:529)
     at com.intellij.openapi.application.impl.ApplicationImpl$7.run(ApplicationImpl.java:429)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:662)
     at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:138)



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()) 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 =PsiElementResolveResult: com; object #2 =PsiElementResolveResult: com
     at gnu.trove.TObjectHash.throwObjectContractViolation(TObjectHash.java:310)
     at gnu.trove.THashSet.rehash(THashSet.java:197)
     at gnu.trove.THash.postInsertHook(THash.java:242)
     at gnu.trove.THashSet.add(THashSet.java:147)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$3.execute(FileReference.java:205)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$3.execute(FileReference.java:199)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.PackagePrefixFileSystemItem.processChildren(PackagePrefixFileSystemItem.java:180)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.processVariants(FileReference.java:329)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.innerResolveInContext(FileReference.java:199)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.innerResolve(FileReference.java:150)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$MyResolver.resolve(FileReference.java:561)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$MyResolver.resolve(FileReference.java:557)
     at com.intellij.psi.impl.source.resolve.ResolveCache$2.compute(ResolveCache.java:129)
     at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:134)
     at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:145)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.multiResolve(FileReference.java:134)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.resolves(PsiMultiReference.java:59)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.access$000(PsiMultiReference.java:36)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:42)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:37)
     at java.util.Arrays.mergeSort(Arrays.java:1270)
     at java.util.Arrays.sort(Arrays.java:1210)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.chooseReference(PsiMultiReference.java:78)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.resolve(PsiMultiReference.java:101)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler.resolve(CtrlMouseHandler.java:456)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler.getInfoAt(CtrlMouseHandler.java:386)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$1500(CtrlMouseHandler.java:84)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.doExecute(CtrlMouseHandler.java:552)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.access$1400(CtrlMouseHandler.java:479)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1$2$1.run(CtrlMouseHandler.java:536)
     at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:853)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1$2.run(CtrlMouseHandler.java:534)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:177)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:204)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:168)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1.run(CtrlMouseHandler.java:529)
     at com.intellij.openapi.application.impl.ApplicationImpl$7.run(ApplicationImpl.java:429)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:662)
     at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:138)



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()) 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 =PsiElementResolveResult: com; object #2 =PsiElementResolveResult: com
     at gnu.trove.TObjectHash.throwObjectContractViolation(TObjectHash.java:310)
     at gnu.trove.THashSet.rehash(THashSet.java:197)
     at gnu.trove.THash.postInsertHook(THash.java:242)
     at gnu.trove.THashSet.add(THashSet.java:147)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$3.execute(FileReference.java:205)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$3.execute(FileReference.java:199)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.PackagePrefixFileSystemItem.processChildren(PackagePrefixFileSystemItem.java:180)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.processVariants(FileReference.java:329)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.innerResolveInContext(FileReference.java:199)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.innerResolve(FileReference.java:150)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$MyResolver.resolve(FileReference.java:561)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$MyResolver.resolve(FileReference.java:557)
     at com.intellij.psi.impl.source.resolve.ResolveCache$2.compute(ResolveCache.java:129)
     at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:134)
     at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:145)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.multiResolve(FileReference.java:134)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.resolves(PsiMultiReference.java:59)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.access$000(PsiMultiReference.java:36)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:42)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:37)
     at java.util.Arrays.mergeSort(Arrays.java:1270)
     at java.util.Arrays.sort(Arrays.java:1210)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.chooseReference(PsiMultiReference.java:78)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.resolve(PsiMultiReference.java:101)
     at com.intellij.codeInsight.TargetElementUtilBase.getReferenceOrReferencedElement(TargetElementUtilBase.java:266)
     at com.intellij.codeInsight.TargetElementUtil.getReferenceOrReferencedElement(TargetElementUtil.java:89)
     at com.intellij.codeInsight.TargetElementUtilBase.findTargetElement(TargetElementUtilBase.java:168)
     at com.intellij.codeInsight.TargetElementUtil.findTargetElement(TargetElementUtil.java:56)
     at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.findTargetElementsNoVS(GotoDeclarationAction.java:204)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler.getInfoAt(CtrlMouseHandler.java:389)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$1500(CtrlMouseHandler.java:84)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.doExecute(CtrlMouseHandler.java:552)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.access$1400(CtrlMouseHandler.java:479)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1$2$1.run(CtrlMouseHandler.java:536)
     at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:853)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1$2.run(CtrlMouseHandler.java:534)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:177)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:204)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:168)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1.run(CtrlMouseHandler.java:529)
     at com.intellij.openapi.application.impl.ApplicationImpl$7.run(ApplicationImpl.java:429)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:662)
     at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:138)



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()) 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 =PsiElementResolveResult: com; object #2 =PsiElementResolveResult: com
     at gnu.trove.TObjectHash.throwObjectContractViolation(TObjectHash.java:310)
     at gnu.trove.THashSet.rehash(THashSet.java:197)
     at gnu.trove.THash.postInsertHook(THash.java:242)
     at gnu.trove.THashSet.add(THashSet.java:147)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$3.execute(FileReference.java:205)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$3.execute(FileReference.java:199)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.PackagePrefixFileSystemItem.processChildren(PackagePrefixFileSystemItem.java:180)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.processVariants(FileReference.java:329)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.innerResolveInContext(FileReference.java:199)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.innerResolve(FileReference.java:150)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$MyResolver.resolve(FileReference.java:561)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$MyResolver.resolve(FileReference.java:557)
     at com.intellij.psi.impl.source.resolve.ResolveCache$2.compute(ResolveCache.java:129)
     at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:134)
     at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:145)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.multiResolve(FileReference.java:134)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.resolves(PsiMultiReference.java:59)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.access$000(PsiMultiReference.java:36)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:42)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:37)
     at java.util.Arrays.mergeSort(Arrays.java:1270)
     at java.util.Arrays.sort(Arrays.java:1210)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.chooseReference(PsiMultiReference.java:78)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.resolve(PsiMultiReference.java:101)
     at com.intellij.codeInsight.TargetElementUtilBase.getReferenceOrReferencedElement(TargetElementUtilBase.java:266)
     at com.intellij.codeInsight.TargetElementUtil.getReferenceOrReferencedElement(TargetElementUtil.java:89)
     at com.intellij.codeInsight.TargetElementUtilBase.findTargetElement(TargetElementUtilBase.java:168)
     at com.intellij.codeInsight.TargetElementUtil.findTargetElement(TargetElementUtil.java:56)
     at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.findTargetElementsNoVS(GotoDeclarationAction.java:204)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler.getInfoAt(CtrlMouseHandler.java:389)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$1500(CtrlMouseHandler.java:84)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.doExecute(CtrlMouseHandler.java:552)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.access$1400(CtrlMouseHandler.java:479)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1$2$1.run(CtrlMouseHandler.java:536)
     at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:853)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1$2.run(CtrlMouseHandler.java:534)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:177)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:204)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:168)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1.run(CtrlMouseHandler.java:529)
     at com.intellij.openapi.application.impl.ApplicationImpl$7.run(ApplicationImpl.java:429)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:662)
     at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:138)



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()) 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 =PsiElementResolveResult: com; object #2 =PsiElementResolveResult: com
     at gnu.trove.TObjectHash.throwObjectContractViolation(TObjectHash.java:310)
     at gnu.trove.THashSet.rehash(THashSet.java:197)
     at gnu.trove.THash.postInsertHook(THash.java:242)
     at gnu.trove.THashSet.add(THashSet.java:147)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$3.execute(FileReference.java:205)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$3.execute(FileReference.java:199)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.PackagePrefixFileSystemItem.processChildren(PackagePrefixFileSystemItem.java:180)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.processVariants(FileReference.java:329)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.innerResolveInContext(FileReference.java:199)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.innerResolve(FileReference.java:150)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$MyResolver.resolve(FileReference.java:561)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference$MyResolver.resolve(FileReference.java:557)
     at com.intellij.psi.impl.source.resolve.ResolveCache$2.compute(ResolveCache.java:129)
     at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:134)
     at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:145)
     at com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReference.multiResolve(FileReference.java:134)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.resolves(PsiMultiReference.java:59)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.access$000(PsiMultiReference.java:36)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:42)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference$1.compare(PsiMultiReference.java:37)
     at java.util.Arrays.mergeSort(Arrays.java:1270)
     at java.util.Arrays.sort(Arrays.java:1210)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.chooseReference(PsiMultiReference.java:78)
     at com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference.resolve(PsiMultiReference.java:101)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler.resolve(CtrlMouseHandler.java:456)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler.getInfoAt(CtrlMouseHandler.java:386)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$1500(CtrlMouseHandler.java:84)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.doExecute(CtrlMouseHandler.java:552)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.access$1400(CtrlMouseHandler.java:479)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1$2$1.run(CtrlMouseHandler.java:536)
     at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:853)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1$2.run(CtrlMouseHandler.java:534)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:177)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:204)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:168)
     at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1.run(CtrlMouseHandler.java:529)
     at com.intellij.openapi.application.impl.ApplicationImpl$7.run(ApplicationImpl.java:429)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:662)
     at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:138)

0

Thank you, seems to be IDEA-74219

Original message URL: http://devnet.jetbrains.net/message/5323618#5323618

0

请先登录再写评论。