check for code presence

This commit is contained in:
Roman Shevchenko 2014-07-03 16:21:09 +02:00
parent ef85e779c6
commit b668038ed9

View File

@ -88,8 +88,7 @@ public class ClassWrapper {
boolean isError = false;
try {
// TODO: simple check if code present?
if((mt.getAccessFlags() & (CodeConstants.ACC_ABSTRACT | CodeConstants.ACC_NATIVE)) == 0) { // native or abstract method, explicit or interface
if(mt.containsCode()) {
int maxsec = 10 * Integer.parseInt(DecompilerContext.getProperty(IFernflowerPreferences.MAX_PROCESSING_METHOD).toString());