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