ignore collected types

This commit is contained in:
Eugene Zhuravlev
2012-06-20 14:20:12 +02:00
parent ee05c7598d
commit 0a3c6b2135
@@ -94,8 +94,12 @@ public class VirtualMachineProxyImpl implements JdiTimer, VirtualMachineProxy {
final Set<ReferenceType> candidates = new HashSet<ReferenceType>();
final ClassLoaderReference outerLoader = refType.classLoader();
for (ReferenceType nested : list) {
if (outerLoader == null? nested.classLoader() == null : outerLoader.equals(nested.classLoader())) {
candidates.add(nested);
try {
if (outerLoader == null? nested.classLoader() == null : outerLoader.equals(nested.classLoader())) {
candidates.add(nested);
}
}
catch (ObjectCollectedException ignored) {
}
}