AnalysisContext.currentAnalysisContext().analysisSkippedDueToInvokeDynamic(xmethod);
return null;
}
try {
AnalysisContext analysisContext = AnalysisContext.currentAnalysisContext();
JavaClass jclass = getJavaClass(analysisCache, descriptor.getClassDescriptor());
ConstantPoolGen cpg = getConstantPoolGen(analysisCache, descriptor.getClassDescriptor());
String methodName = method.getName();
int codeLength = method.getCode().getLength();
String superclassName = jclass.getSuperclassName();
if (codeLength > 6000 && methodName.equals("<clinit>") && superclassName.equals("java.lang.Enum")) {
analysisContext.getLookupFailureCallback().reportSkippedAnalysis(
new JavaClassAndMethod(jclass, method).toMethodDescriptor());
return null;
}
if (analysisContext.getBoolProperty(AnalysisFeatures.SKIP_HUGE_METHODS)) {
if (codeLength > 6000 || (methodName.equals("<clinit>") || methodName.equals("getContents")) && codeLength > 2000) {
analysisContext.getLookupFailureCallback().reportSkippedAnalysis(
new JavaClassAndMethod(jclass, method).toMethodDescriptor());
return null;
}
}