-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 21
-
Component/s: core-libs
Add a SymbolLookup::or method to support lookup chaining.
SymbolLookup combined = loookupA.or(lookupB);
This would be a convenience method for the following:
SymbolLookup combined = name -> loookupA.lookup(name).or(() -> lookupB.lookup(name));
With a little more prominence in the API as well.
SymbolLookup combined = loookupA.or(lookupB);
This would be a convenience method for the following:
SymbolLookup combined = name -> loookupA.lookup(name).or(() -> lookupB.lookup(name));
With a little more prominence in the API as well.
- csr for
-
JDK-8308002 Add SymbolLookup::or method
-
- Closed
-