Skip to content

Commit 76d3d13

Browse files
committed
Add class name to lambda synthetic class and strip java:: from tag
1 parent 6ff7a0e commit 76d3d13

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jbmc/src/java_bytecode/lambda_synthesis.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,12 @@ void create_invokedynamic_synthetic_classes(
158158
irep_idt synthetic_class_name =
159159
lambda_synthetic_class_name(method_identifier, instruction.address);
160160

161+
// Strip java:: off full name for the tag
162+
irep_idt class_tag = id2string(synthetic_class_name).substr(6);
163+
161164
java_class_typet synthetic_class_type;
162-
synthetic_class_type.set_tag(synthetic_class_name);
165+
synthetic_class_type.set_tag(class_tag);
166+
synthetic_class_type.set_name(synthetic_class_name);
163167
synthetic_class_type.set_synthetic(true);
164168
synthetic_class_type.set(
165169
ID_java_lambda_method_identifier, lambda_method_symbol.value().name);

0 commit comments

Comments
 (0)