public void logAnError(String msg) { RepositoryLookupFailureCallback lookupFailureCallback = getLookupFailureCallback(); if (lookupFailureCallback != null) { lookupFailureCallback.logError(msg); } }
/** * Write an interprocedural property database. * * @param <DatabaseType> * actual type of the database * @param <KeyType> * type of key (e.g., method or field) * @param <Property> * type of properties stored in the database * @param database * the database * @param fileName * name of database file * @param description * description of the database */ public <DatabaseType extends PropertyDatabase<KeyType, Property>, KeyType extends FieldOrMethodDescriptor, Property> void storePropertyDatabase( DatabaseType database, String fileName, String description) { try { File dbFile = new File(getDatabaseOutputDir(), fileName); if (DEBUG) { System.out.println("Writing " + description + " to " + dbFile.getPath() + "..."); } database.writeToFile(dbFile.getPath()); } catch (IOException e) { getLookupFailureCallback().logError("Error writing " + description, e); } }
lookupFailureCallback.logError(msg, e);
} catch (UncheckedAnalysisException e) { AnalysisContext.currentAnalysisContext().getLookupFailureCallback() .logError("Error getting relevant type qualifiers for " + xmethod.toString(), e); return Collections.<TypeQualifierValue<?>> emptySet();
.logError("Error analyzing " + xmethod + " for unconditional deref training", e); } catch (DataflowAnalysisException e) { XMethod xmethod = XFactory.createXMethod(classContext.getJavaClass(), method); AnalysisContext.currentAnalysisContext().getLookupFailureCallback() .logError("Error analyzing " + xmethod + " for unconditional deref training", e);
.logError("Error analyzing " + xmethod + " for unconditional deref training", e);
} catch (DataflowAnalysisException e) { AnalysisContext.currentAnalysisContext().getLookupFailureCallback() .logError("unable to extract type analysis", e); } catch (ClassNotFoundException e) { AnalysisContext.currentAnalysisContext().getLookupFailureCallback().reportMissingClass(e);
public void logAnError(String msg) { RepositoryLookupFailureCallback lookupFailureCallback = getLookupFailureCallback(); if (lookupFailureCallback != null) { lookupFailureCallback.logError(msg); } }
/** * Write an interprocedural property database. * * @param <DatabaseType> * actual type of the database * @param <KeyType> * type of key (e.g., method or field) * @param <Property> * type of properties stored in the database * @param database * the database * @param fileName * name of database file * @param description * description of the database */ public <DatabaseType extends PropertyDatabase<KeyType, Property>, KeyType extends FieldOrMethodDescriptor, Property> void storePropertyDatabase( DatabaseType database, String fileName, String description) { try { File dbFile = new File(getDatabaseOutputDir(), fileName); if (DEBUG) { System.out.println("Writing " + description + " to " + dbFile.getPath() + "..."); } database.writeToFile(dbFile.getPath()); } catch (IOException e) { getLookupFailureCallback().logError("Error writing " + description, e); } }
lookupFailureCallback.logError(msg, e);
} catch (UncheckedAnalysisException e) { AnalysisContext.currentAnalysisContext().getLookupFailureCallback() .logError("Error getting relevant type qualifiers for " + xmethod.toString(), e); return Collections.<TypeQualifierValue<?>> emptySet();
.logError("Error analyzing " + xmethod + " for unconditional deref training", e); } catch (DataflowAnalysisException e) { XMethod xmethod = XFactory.createXMethod(classContext.getJavaClass(), method); AnalysisContext.currentAnalysisContext().getLookupFailureCallback() .logError("Error analyzing " + xmethod + " for unconditional deref training", e);
.logError("Error analyzing " + xmethod + " for unconditional deref training", e);
} catch (DataflowAnalysisException e) { AnalysisContext.currentAnalysisContext().getLookupFailureCallback() .logError("unable to extract type analysis", e); } catch (ClassNotFoundException e) { AnalysisContext.currentAnalysisContext().getLookupFailureCallback().reportMissingClass(e);