-
Bug
-
Resolution: Fixed
-
P4
-
25, 26
-
b08
-
generic
-
generic
Neither ScopedValue.orElse nor ScopedValue.orElseThrow consult the cache when searching for a binding. Neither do they update the cache when a binding is found.
While this issue does not affect spec compliance, it is surprising to users that x.orElse(other) should be slower than x.isBound ? x.get() : other.
While this issue does not affect spec compliance, it is surprising to users that x.orElse(other) should be slower than x.isBound ? x.get() : other.
- links to
-
Commit(master) openjdk/jdk/9dd93c6a
-
Review(master) openjdk/jdk/26164