Skip to content

Commit 15db047

Browse files
author
Daniel Kroening
authored
Merge pull request #389 from smowton/dont_convert_native_methods
Don't convert native methods
2 parents 9b6a013 + a5fdbdc commit 15db047

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,9 @@ void java_bytecode_convert_methodt::convert(
413413
method_has_this=code_type.has_this();
414414

415415
tmp_vars.clear();
416-
method_symbol.value=convert_instructions(m.instructions, code_type);
416+
417+
if((!m.is_abstract) && (!m.is_native))
418+
method_symbol.value=convert_instructions(m.instructions, code_type);
417419

418420
// do we have the method symbol already?
419421
const auto s_it=symbol_table.symbols.find(method.get_name());

0 commit comments

Comments
 (0)