Skip to content

Commit 3fe681c

Browse files
author
Matthias Güdemann
committed
Mark native methods java_method_typet with ID_is_native_method
1 parent 3f5847c commit 3fe681c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ void java_bytecode_convert_method_lazy(
372372
member_type.set(ID_is_synchronized, true);
373373
if(m.is_static)
374374
member_type.set(ID_is_static, true);
375+
if(m.is_native)
376+
member_type.set(ID_is_native_method, true);
375377

376378
if(m.is_bridge)
377379
member_type.set(ID_is_bridge_method, m.is_bridge);

src/util/irep_ids.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ IREP_ID_ONE(is_enum_constant)
387387
IREP_ID_ONE(is_inline)
388388
IREP_ID_ONE(is_extern)
389389
IREP_ID_ONE(is_synchronized)
390+
IREP_ID_ONE(is_native_method)
390391
IREP_ID_ONE(is_global)
391392
IREP_ID_ONE(is_thread_local)
392393
IREP_ID_ONE(is_parameter)

0 commit comments

Comments
 (0)