use of org.apache.aries.versioning.utils.SerialVersionClassVisitor in project aries by apache.
the class BundleCompatibility method getVisitor.
private SemanticVersioningClassVisitor getVisitor(IFile file, URLClassLoader loader) {
SerialVersionClassVisitor sv = new SerialVersionClassVisitor(null);
SemanticVersioningClassVisitor oldcv = new SemanticVersioningClassVisitor(loader, sv);
try {
ClassReader cr = new ClassReader(file.open());
cr.accept(oldcv, 0);
} catch (IOException ioe) {
_logger.debug("The file " + file + "cannot be opened.");
}
return oldcv;
}
Aggregations