diff --git a/jdk/src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java b/jdk/src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java index ab76a876e6d..88af45d9c96 100644 --- a/jdk/src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java +++ b/jdk/src/share/classes/com/sun/tools/jdi/ReferenceTypeImpl.java @@ -529,7 +529,7 @@ implements ReferenceType { * to filter that ordered collection. */ List list = allMethods(); - list.retainAll(map.values()); + list.retainAll(new HashSet(map.values())); return list; }