Skip to content

Commit 6813a79

Browse files
committed
Java: Add test for override of Map.put highlighting problem.
1 parent 55ebbc3 commit 6813a79

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

java/ql/test/library-tests/frameworks/JaxWs/JakartaRsFlow.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ void testAbstractMultivaluedMap(Map<String, List<String>> map1, Map<String, List
166166
map2.put("key", list);
167167
AbstractMultivaluedMap<String, String> amm2 = new MyAbstractMultivaluedMapJak<String, String>(map2);
168168
sink(amm2.get("key").get(0)); // $ hasValueFlow
169+
170+
AbstractMultivaluedMap<String, String> amm3 = new MyAbstractMultivaluedMapJak<String, String>(null);
171+
amm3.put("key", list);
172+
sink(amm3.get("key").get(0)); // $ MISSING: hasValueFlow
169173
}
170174

171175
void testMultivaluedHashMap(Map<String, String> map1, Map<String, String> map2,
@@ -407,4 +411,4 @@ void testUriBuilder() throws Exception {
407411

408412
class DummyJakarta {
409413
private static Set<String> foo() { return null; }
410-
}
414+
}

0 commit comments

Comments
 (0)