VISTALL / database-navigator

Automatically exported from code.google.com/p/database-navigator
1 stars 0 forks source link

THashMap issue #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 =FN_TO_CHAR; object #2 =FN_TO_CHAR: 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 =FN_TO_CHAR; object #2 =FN_TO_CHAR
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 =FN_TO_CHAR; object #2 =FN_TO_CHAR
    at gnu.trove.TObjectHash.throwObjectContractViolation(TObjectHash.java:311)
    at gnu.trove.THashMap.rehash(THashMap.java:347)
    at gnu.trove.THash.postInsertHook(THash.java:284)
    at gnu.trove.THashMap.put(THashMap.java:175)
    at com.dci.intellij.dbn.language.common.element.lookup.AbstractElementTypeLookupCache.containsLandmarkToken(AbstractElementTypeLookupCache.java:233)
    at com.dci.intellij.dbn.language.common.element.impl.SequenceElementTypeImpl.containsLandmarkTokenFromIndex(SequenceElementTypeImpl.java:140)
    at com.dci.intellij.dbn.language.common.element.parser.IterationElementTypeParser.advanceLexerToNextLandmark(IterationElementTypeParser.java:114)
    at com.dci.intellij.dbn.language.common.element.parser.IterationElementTypeParser.parse(IterationElementTypeParser.java:69)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.WrapperElementTypeParser.parse(WrapperElementTypeParser.java:29)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.IterationElementTypeParser.parse(IterationElementTypeParser.java:59)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.WrapperElementTypeParser.parse(WrapperElementTypeParser.java:29)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.BlockElementTypeParser.parse(BlockElementTypeParser.java:16)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.WrapperElementTypeParser.parse(WrapperElementTypeParser.java:29)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.WrapperElementTypeParser.parse(WrapperElementTypeParser.java:48)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.WrapperElementTypeParser.parse(WrapperElementTypeParser.java:29)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.IterationElementTypeParser.parse(IterationElementTypeParser.java:30)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.WrapperElementTypeParser.parse(WrapperElementTypeParser.java:29)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.IterationElementTypeParser.parse(IterationElementTypeParser.java:59)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.WrapperElementTypeParser.parse(WrapperElementTypeParser.java:29)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.IterationElementTypeParser.parse(IterationElementTypeParser.java:30)
    at com.dci.intellij.dbn.language.common.element.parser.WrapperElementTypeParser.parse(WrapperElementTypeParser.java:29)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.WrapperElementTypeParser.parse(WrapperElementTypeParser.java:29)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.BlockElementTypeParser.parse(BlockElementTypeParser.java:16)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.WrapperElementTypeParser.parse(WrapperElementTypeParser.java:29)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.IterationElementTypeParser.parse(IterationElementTypeParser.java:59)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.IterationElementTypeParser.parse(IterationElementTypeParser.java:30)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.WrapperElementTypeParser.parse(WrapperElementTypeParser.java:48)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.IterationElementTypeParser.parse(IterationElementTypeParser.java:59)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.element.parser.OneOfElementTypeParser.parse(OneOfElementTypeParser.java:28)
    at com.dci.intellij.dbn.language.common.element.parser.IterationElementTypeParser.parse(IterationElementTypeParser.java:59)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:56)
    at com.dci.intellij.dbn.language.common.element.parser.NamedElementTypeParser.parse(NamedElementTypeParser.java:20)
    at com.dci.intellij.dbn.language.common.DBLanguageParser.parse(DBLanguageParser.java:56)
    at com.dci.intellij.dbn.language.common.DBLanguageFileElementType.parseContents(DBLanguageFileElementType.java:31)
    at com.intellij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:165)
    at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:209)
    at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:34)
    at com.intellij.psi.impl.source.tree.SharedImplUtil.getFirstChild(SharedImplUtil.java:44)
    at com.intellij.psi.impl.source.PsiFileImpl.getFirstChild(PsiFileImpl.java:777)
    at com.dci.intellij.dbn.language.psql.PSQLFoldingBuilder.createFoldingDescriptors(PSQLFoldingBuilder.java:28)
    at com.dci.intellij.dbn.language.psql.PSQLFoldingBuilder.buildFoldRegions(PSQLFoldingBuilder.java:23)
    at com.intellij.lang.folding.LanguageFolding.buildFoldingDescriptors(LanguageFolding.java:78)
    at com.intellij.codeInsight.folding.impl.FoldingUpdate.getFoldingsFor(FoldingUpdate.java:202)
    at com.intellij.codeInsight.folding.impl.FoldingUpdate.getUpdateResult(FoldingUpdate.java:115)
    at com.intellij.codeInsight.folding.impl.FoldingUpdate.access$000(FoldingUpdate.java:49)
    at com.intellij.codeInsight.folding.impl.FoldingUpdate$2.compute(FoldingUpdate.java:101)
    at com.intellij.codeInsight.folding.impl.FoldingUpdate$2.compute(FoldingUpdate.java:96)
    at com.intellij.psi.impl.PsiParameterizedCachedValue.doCompute(PsiParameterizedCachedValue.java:53)
    at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:200)
    at com.intellij.psi.impl.PsiParameterizedCachedValue.getValue(PsiParameterizedCachedValue.java:43)
    at com.intellij.psi.util.CachedValuesManager.getParameterizedCachedValue(CachedValuesManager.java:76)
    at com.intellij.codeInsight.folding.impl.FoldingUpdate.updateFoldRegions(FoldingUpdate.java:95)
    at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.updateFoldRegions(CodeFoldingManagerImpl.java:313)
    at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.updateFoldRegionsAsync(CodeFoldingManagerImpl.java:305)
    at com.intellij.codeInsight.daemon.impl.CodeFoldingPass.doCollectInformation(CodeFoldingPass.java:46)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:62)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:357)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1155)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:348)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:232)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:345)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:321)
    at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:129)
    at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:126)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
    at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
    at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:113)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

Original issue reported on code.google.com by cioca...@googlemail.com on 22 Jan 2013 at 8:40

GoogleCodeExporter commented 9 years ago

Original comment by cioca...@googlemail.com on 21 May 2013 at 8:10