Skip to content

Commit 51133db

Browse files
author
thk123
committed
Remove test checking don't specalise unspecalised generic types
Previously this test verified that a a List<T> reference wouldn't cause us to create a specalisation of List with generic type paramter T. Given that we now don't specalise any types except manually, this test doesn't make sense.
1 parent bf10b1b commit 51133db

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

unit/java_bytecode/generate_concrete_generic_type/generate_java_generic_type.cpp

-21
Original file line numberDiff line numberDiff line change
@@ -126,27 +126,6 @@ SCENARIO(
126126
}
127127
}
128128

129-
130-
SCENARIO(
131-
"generate_java_generic_type_from_file_uninstantiated_param",
132-
"[core][java_bytecode][generate_java_generic_type]")
133-
{
134-
GIVEN("A generic java type with a field that refers to another generic with"
135-
" an uninstantiated parameter.")
136-
{
137-
symbol_tablet new_symbol_table=
138-
load_java_class("generic_unknown_field",
139-
"./java_bytecode/generate_concrete_generic_type");
140-
141-
// It's illegal to create an instantiation of a field that refers
142-
// to a (still) uninstantiated generic class, so this is checking that
143-
// this hasn't happened.
144-
REQUIRE_FALSE(new_symbol_table.has_symbol
145-
("java::generic_unknown_field$element<T>"));
146-
}
147-
}
148-
149-
150129
SCENARIO(
151130
"generate_java_generic_type_from_file_two_instances",
152131
"[core][java_bytecode][generate_java_generic_type]")

0 commit comments

Comments
 (0)