-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
21
For example the following call to method ::run
ScopedValue.where(ScopedValue.newInstance(), 123)
.run(() -> {throw new RuntimeException("Thrown by the op");});
would result in getting the exact instance of RuntimeException that the op throws.
Same for other methods of j.l.ScopedValue/Carrier accepting an op
This exception as-is delegation to the caller deserves to be explicitly mentioned in j.l.ScopedValue+Carrier specs
ScopedValue.where(ScopedValue.newInstance(), 123)
.run(() -> {throw new RuntimeException("Thrown by the op");});
would result in getting the exact instance of RuntimeException that the op throws.
Same for other methods of j.l.ScopedValue/Carrier accepting an op
This exception as-is delegation to the caller deserves to be explicitly mentioned in j.l.ScopedValue+Carrier specs