J.IX · Java 25 practice question
In JEP 506 (Scoped Values), what does the Robustness goal state about data shared by a caller?
Check answer and explanation
Correct answer: It should be retrievable only by legitimate callees.
Explanation
JEP 506's Robustness goal requires that data shared by a caller be retrievable only by legitimate callees.
Common trap
Making data readable by arbitrary threads or keeping it bound after the caller returns violates scoped-value isolation.
Source: JEP 506: Scoped Values — Goals
Checked against the cited text on 2026-11-27.