Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 145332
Collapse All | Expand All

(-)model/org/eclipse/jdt/internal/core/hierarchy/HierarchyResolver.java (-6 / +7 lines)
Lines 58-63 Link Here
58
import org.eclipse.jdt.internal.core.*;
58
import org.eclipse.jdt.internal.core.*;
59
import org.eclipse.jdt.internal.core.util.ASTNodeFinder;
59
import org.eclipse.jdt.internal.core.util.ASTNodeFinder;
60
import org.eclipse.jdt.internal.core.util.HandleFactory;
60
import org.eclipse.jdt.internal.core.util.HandleFactory;
61
import org.eclipse.jdt.internal.core.util.Util;
61
62
62
public class HierarchyResolver implements ITypeRequestor {
63
public class HierarchyResolver implements ITypeRequestor {
63
	
64
	
Lines 616-622 Link Here
616
							focusUnit = parsedUnit;
617
							focusUnit = parsedUnit;
617
						}
618
						}
618
					} catch (AbortCompilation e) {
619
					} catch (AbortCompilation e) {
619
						// classpath problem for this type: ignore
620
						Util.log(e, "Could not build type bindings for " + openable.getPath()); //$NON-NLS-1$
620
					}
621
					}
621
				}
622
				}
622
			} else {
623
			} else {
Lines 648-654 Link Here
648
							focusBinaryBinding = binaryTypeBinding;
649
							focusBinaryBinding = binaryTypeBinding;
649
						}
650
						}
650
					} catch (AbortCompilation e) {
651
					} catch (AbortCompilation e) {
651
						// classpath problem for this type: ignore
652
						Util.log(e, "Could not cache binary type for " + openable.getPath()); //$NON-NLS-1$
652
					}
653
					}
653
				}
654
				}
654
			}
655
			}
Lines 663-669 Link Here
663
					typeBinding.superclass();
664
					typeBinding.superclass();
664
					typeBinding.superInterfaces();
665
					typeBinding.superInterfaces();
665
				} catch (AbortCompilation e) {
666
				} catch (AbortCompilation e) {
666
					// classpath problem for this type: ignore
667
					Util.log(e, "Could not get the superclass/superInterfaces for " + new String(suppliedType.getFileName())); //$NON-NLS-1$
667
				}
668
				}
668
			}
669
			}
669
		}		
670
		}		
Lines 681-686 Link Here
681
				} catch (AbortCompilation e) {
682
				} catch (AbortCompilation e) {
682
					// classpath problem for this type: don't try to resolve (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=49809)
683
					// classpath problem for this type: don't try to resolve (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=49809)
683
					hasLocalType[i] = false;
684
					hasLocalType[i] = false;
685
					Util.log(e, "Could not complete type bindings for " + new String(parsedUnit.getFileName())); //$NON-NLS-1$
684
				}
686
				}
685
			}
687
			}
686
			worked(monitor, 1);
688
			worked(monitor, 1);
Lines 712-720 Link Here
712
		reportHierarchy(focus, focusUnit, focusBinaryBinding);
714
		reportHierarchy(focus, focusUnit, focusBinaryBinding);
713
		
715
		
714
	} catch (ClassCastException e){ // work-around for 1GF5W1S - can happen in case duplicates are fed to the hierarchy with binaries hiding sources
716
	} catch (ClassCastException e){ // work-around for 1GF5W1S - can happen in case duplicates are fed to the hierarchy with binaries hiding sources
715
	} catch (AbortCompilation e) { // ignore this exception for now since it typically means we cannot find java.lang.Object
717
	} catch (AbortCompilation e) {
716
		if (TypeHierarchy.DEBUG)
718
		Util.log(e, "Could not resolve hierarchy"); //$NON-NLS-1$
717
			e.printStackTrace();
718
	} finally {
719
	} finally {
719
		reset();
720
		reset();
720
	}
721
	}

Return to bug 145332