name = fd;
} else {
pkg = fd.substring(0,dot);
name = fd.substring(dot+1);
}
out = new UnresolvedClassImpl(pkg,name,mContext);
mContext.warning("failed to resolve class "+fd);
cachePut(out);
}
return out;
}
}
// parse out the package and class names - this is kinda broken
int dot = fd.lastIndexOf('.');
String pkg;
String name;
if (dot == -1) {
pkg = "";
name = fd;
} else {
pkg = fd.substring(0,dot);
name = fd.substring(dot+1);
}
out = mBuilder.build(pkg,name);
if (out == null) {
//FIXME currently, the unqualified ref stuff will keep calling this,
//newing up new UnresolvedClassImpls for each import until it finds
//something. We need to break out a separate checkClass() method
//or something for them which returns null rather than UnresolvedClass.
out = new UnresolvedClassImpl(pkg,name,mContext);
mContext.warning("failed to resolve class "+fd);
cachePut(out);
return out;
}
cachePut(out);