The tests still pass replacing the try/catch with:

ClassNodeResolver.LookupResult lookupResult =
getClassNodeResolver().resolveName(name, CompilationUnit.this);
return lookupResult == null ? null : lookupResult.getClassNode();

Not sure whether returning null will cause a problem but if so it isn't
triggered by our current test suite.

Cheers, Paul.

Reply via email to