VISTALL / database-navigator

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

hash code vs. equals issue (SimpleTokenType) #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
[3045230]  ERROR - currency.PrioritizedFutureTask - IntelliJ IDEA (Community 
Edition) IC-122.202  Build #IC-122.202 
[3045230]  ERROR - currency.PrioritizedFutureTask - JDK: 1.6.0_20 
[3045230]  ERROR - currency.PrioritizedFutureTask - VM: Java HotSpot(TM) Client 
VM 
[3045230]  ERROR - currency.PrioritizedFutureTask - Vendor: Sun Microsystems 
Inc. 
[3045230]  ERROR - currency.PrioritizedFutureTask - OS: Windows XP 
[3045230]  ERROR - currency.PrioritizedFutureTask - Last Action: 
ChangesView.Diff 
[3045230]  ERROR - currency.PrioritizedFutureTask - Original exception:  
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 =KW_OPERATOR; object #2 =KW_OPERATOR
    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.WrapperElementTypeParser.parse(WrapperElementTypeParser.java:48)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:53)
    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:53)
    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:30)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:53)
    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:53)
    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:53)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:53)
    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:30)
    at com.dci.intellij.dbn.language.common.element.parser.SequenceElementTypeParser.parse(SequenceElementTypeParser.java:53)
    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:164)
    at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:208)
    at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:33)
    at com.intellij.psi.impl.source.tree.SharedImplUtil.getFirstChild(SharedImplUtil.java:44)
    at com.intellij.psi.impl.source.PsiFileImpl.getFirstChild(PsiFileImpl.java:769)
    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:198)
    at com.intellij.codeInsight.folding.impl.FoldingUpdate.getUpdateResult(FoldingUpdate.java:113)
    at com.intellij.codeInsight.folding.impl.FoldingUpdate.access$000(FoldingUpdate.java:49)
    at com.intellij.codeInsight.folding.impl.FoldingUpdate$2.compute(FoldingUpdate.java:99)
    at com.intellij.codeInsight.folding.impl.FoldingUpdate$2.compute(FoldingUpdate.java:95)
    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:94)
    at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.updateFoldRegions(CodeFoldingManagerImpl.java:287)
    at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.updateFoldRegionsAsync(CodeFoldingManagerImpl.java:279)
    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:1118)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:348)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:231)
    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:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    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$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)

Original issue reported on code.google.com by cioca...@googlemail.com on 27 Aug 2012 at 2:29

GoogleCodeExporter commented 9 years ago

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