diff options
author | Motonori IWAMURO | 2018-11-21 08:46:05 +0000 |
---|---|---|
committer | Till Brychcy | 2018-12-23 10:28:11 +0000 |
commit | 41ed24e39f591a7b5807470ed92379a45d609f3a (patch) | |
tree | f264e45e12465ec36f046529dc944c1f9ffd892d | |
parent | b0073402cfcb2ca92cfe1636a8b336797bd030e5 (diff) | |
download | eclipse.jdt.core-I20181224-1800.tar.gz eclipse.jdt.core-I20181224-1800.tar.xz eclipse.jdt.core-I20181224-1800.zip |
Bug 541387 - Slow compilation in project with many parameterized typeI20181228-1800I20181227-1800I20181226-1800I20181225-1800I20181224-1800I20181223-1800
arguments
Change-Id: If46335ef10a46ece9916cc06c8c35891528c6184
Signed-off-by: Motonori IWAMURO <vmi@jp.fujitsu.com>
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeSystem.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeSystem.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeSystem.java index 80d1ef0345..58eb392398 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeSystem.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeSystem.java @@ -114,7 +114,7 @@ public class TypeSystem { return this.type == that.type && this.enclosingType == that.enclosingType && Util.effectivelyEqual(this.arguments, that.arguments); //$IDENTITY-COMPARISON$ } final int hash(TypeBinding b) { - if(b instanceof WildcardBinding || b instanceof TypeVariableBinding) { + if(b instanceof WildcardBinding || b instanceof TypeVariableBinding || b.getClass() == ParameterizedTypeBinding.class) { return System.identityHashCode(b); } return b.hashCode(); |