RFR: JDK-8286666: JEP 429: Implementation of Scoped Values (Incubator)

Andrew Haley aph at openjdk.org
Tue Nov 15 14:20:55 UTC 2022


On Mon, 14 Nov 2022 17:34:31 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> JEP 429 implementation.
>
> src/java.base/share/classes/java/lang/VirtualThread.java line 318:
> 
>> 316:         }
>> 317:     }
>> 318:     @Hidden
> 
> Can we rename this to runWith(Runnable, Object) in both Thread and VirtualThread to keep the naming consistent if we can?

OK. I do want to keep the name of this method consistent throughout. There are version for `Runnable` and `Callable` and it makes the runtime code cleaner if they have the same name.

-------------

PR: https://git.openjdk.org/jdk/pull/10952


More information about the security-dev mailing list