@@ -19,7 +19,8 @@ SCENARIO(
19
19
" generate_java_generic_type_from_file" ,
20
20
" [core][java_bytecode][generate_java_generic_type]" )
21
21
{
22
- auto expected_symbol = " java::generic_two_fields$bound_element<Integer>" ;
22
+ auto expected_symbol =
23
+ " java::generic_two_fields$bound_element<java::java.lang.Integer>" ;
23
24
24
25
GIVEN (" A generic java type with two generic fields and a concrete "
25
26
" substitution" )
@@ -35,7 +36,7 @@ SCENARIO(
35
36
THEN (" The class should contain two instantiated fields." )
36
37
{
37
38
const auto &class_symbol = new_symbol_table.lookup (
38
- " java::generic_two_fields$bound_element<Integer>" );
39
+ " java::generic_two_fields$bound_element<java::java.lang. Integer>" );
39
40
const typet &symbol_type=class_symbol->type ;
40
41
41
42
REQUIRE (symbol_type.id ()==ID_struct);
@@ -68,7 +69,8 @@ SCENARIO(
68
69
" [core][java_bytecode][generate_java_generic_type]" )
69
70
{
70
71
auto expected_symbol =
71
- " java::generic_two_parameters$KeyValuePair<String, Integer>" ;
72
+ " java::generic_two_parameters$KeyValuePair<java::java.lang.String, "
73
+ " java::java.lang.Integer>" ;
72
74
73
75
GIVEN (" A generic java type with two generic parameters, like a Hashtable" )
74
76
{
@@ -109,8 +111,10 @@ SCENARIO(
109
111
// After we have loaded the class and converted the generics,
110
112
// the presence of these two symbols in the symbol table is
111
113
// proof enough that we did the work we needed to do correctly.
112
- auto first_expected_symbol = " java::generic_two_instances$element<Boolean>" ;
113
- auto second_expected_symbol = " java::generic_two_instances$element<Integer>" ;
114
+ auto first_expected_symbol =
115
+ " java::generic_two_instances$element<java::java.lang.Boolean>" ;
116
+ auto second_expected_symbol =
117
+ " java::generic_two_instances$element<java::java.lang.Integer>" ;
114
118
115
119
GIVEN (" A generic java type with a field that refers to another generic with"
116
120
" an uninstantiated parameter." )
@@ -204,8 +208,7 @@ SCENARIO(
204
208
{
205
209
const irep_idt test_class_integer =
206
210
" java::generic_field_array_instantiation$generic<array[reference]"
207
- " of_"
208
- " java::java.lang.Integer>" ;
211
+ " of_java::java.lang.Integer>" ;
209
212
210
213
const irep_idt test_class_int =
211
214
" java::generic_field_array_instantiation$generic<array[int]>" ;
@@ -258,8 +261,9 @@ SCENARIO(
258
261
" There should be a specialised version of the class in the symbol "
259
262
" table" )
260
263
{
261
- const irep_idt specialised_class_name =
262
- id2string (harness_class) + " $" + id2string (inner_class) + " <Float>" ;
264
+ const irep_idt specialised_class_name = id2string (harness_class) + " $" +
265
+ id2string (inner_class) +
266
+ " <java::java.lang.Float>" ;
263
267
REQUIRE (new_symbol_table.has_symbol (specialised_class_name));
264
268
265
269
const symbolt test_class_symbol =
@@ -309,8 +313,7 @@ SCENARIO(
309
313
" table" )
310
314
{
311
315
const std::string specialised_string =
312
- " <array[reference]of_"
313
- " java::java.lang.Float>" ;
316
+ " <array[reference]of_java::java.lang.Float>" ;
314
317
const irep_idt specialised_class_name = id2string (harness_class) + " $" +
315
318
id2string (inner_class) +
316
319
specialised_string;
0 commit comments