Skip to content

Commit 2815e84

Browse files
authored
Merge pull request diffblue#2259 from smowton/smowton/feature/note-abstract-methods
Note when symbol-table entries are abstract methods
2 parents 09b8cf7 + 15ed961 commit 2815e84

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ void java_bytecode_convert_method_lazy(
404404
}
405405

406406
method_symbol.type=member_type;
407+
// Not used in jbmc at present, but other codebases that use jbmc as a library
408+
// use this information.
409+
method_symbol.type.set(ID_C_abstract, m.is_abstract);
407410
symbol_table.add(method_symbol);
408411
}
409412

src/util/irep_ids.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ IREP_ID_TWO(overlay_method, java::com.diffblue.OverlayMethodImplementation)
664664
IREP_ID_TWO(C_annotations, #annotations)
665665
IREP_ID_ONE(final)
666666
IREP_ID_ONE(bits_per_byte)
667+
IREP_ID_TWO(C_abstract, #abstract)
667668

668669
// Projects depending on this code base that wish to extend the list of
669670
// available ids should provide a file local_irep_ids.h in their source tree and

0 commit comments

Comments
 (0)