mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8344361: Restore null return for invalid services from legacy providers
Reviewed-by: valeriep
This commit is contained in:
parent
5a0bdd04e0
commit
e20bd018c4
2 changed files with 50 additions and 0 deletions
|
@ -1147,6 +1147,7 @@ public abstract class Provider extends Properties {
|
|||
s = legacyMap.get(key);
|
||||
if (s != null && !s.isValid()) {
|
||||
legacyMap.remove(key, s);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue