Index: org/eclipse/jdt/internal/compiler/lookup/Scope.java =================================================================== --- org/eclipse/jdt/internal/compiler/lookup/Scope.java 2006-05-18 15:59:46.000000000 +0400 +++ org/eclipse/jdt/internal/compiler/lookup/Scope.java 2007-05-16 16:52:56.937807300 +0400 @@ -2938,7 +2938,7 @@ TypeBinding leafType = firstType.leafComponentType(); TypeBinding firstErasure = (leafType.isTypeVariable() || leafType.isWildcard()/*&& !leafType.isCapture()*/) ? firstType : firstType.erasure(); if (firstErasure != firstType) { - Set someInvocations = new HashSet(1); + Set someInvocations = new LinkedHashSet(); someInvocations.add(firstType); allInvocations.put(firstErasure, someInvocations); } @@ -3000,7 +3000,7 @@ max++; TypeBinding superTypeErasure = (firstBound.isTypeVariable() || firstBound.isWildcard() /*&& !itsInterface.isCapture()*/) ? superType : superType.erasure(); if (superTypeErasure != superType) { - Set someInvocations = new HashSet(1); + Set someInvocations = new LinkedHashSet(); someInvocations.add(superType); allInvocations.put(superTypeErasure, someInvocations); } @@ -3019,7 +3019,7 @@ max++; TypeBinding superTypeErasure = (itsInterface.isTypeVariable() || itsInterface.isWildcard() /*&& !itsInterface.isCapture()*/) ? superType : superType.erasure(); if (superTypeErasure != superType) { - Set someInvocations = new HashSet(1); + Set someInvocations = new LinkedHashSet(); someInvocations.add(superType); allInvocations.put(superTypeErasure, someInvocations); } @@ -3034,7 +3034,7 @@ max++; TypeBinding superTypeErasure = (itsSuperclass.isTypeVariable() || itsSuperclass.isWildcard() /*&& !itsSuperclass.isCapture()*/) ? superType : superType.erasure(); if (superTypeErasure != superType) { - Set someInvocations = new HashSet(1); + Set someInvocations = new LinkedHashSet(); someInvocations.add(superType); allInvocations.put(superTypeErasure, someInvocations); } @@ -3066,7 +3066,7 @@ } // record invocation Set someInvocations = (Set) allInvocations.get(erasedSuperType); - if (someInvocations == null) someInvocations = new HashSet(1); + if (someInvocations == null) someInvocations = new LinkedHashSet(); someInvocations.add(match); allInvocations.put(erasedSuperType, someInvocations); } @@ -3092,7 +3092,7 @@ } // record invocation Set someInvocations = (Set) allInvocations.get(erasedSuperType); - if (someInvocations == null) someInvocations = new HashSet(1); + if (someInvocations == null) someInvocations = new LinkedHashSet(); someInvocations.add(match); allInvocations.put(erasedSuperType, someInvocations); }