RFR: JDK-8275308: Add valueOf(Runtime.Version) factory to SourceVersion [v3]

Jonathan Gibbons jjg at openjdk.java.net
Wed Oct 27 17:09:19 UTC 2021


On Wed, 27 Oct 2021 16:48:11 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> Updated as suggested.
>
>> 
>> 
>> Using `Runtime.version()` as a stand-in for the max `SourceVersion` seems non-obvious. Would it be better to use `SourceVersion.latest().runtimeVersion()` instead?
>> 
>> What about when running this API on JDK N-1?
> 
> Updated the supported range to go up to the feature corresponding to SourceVersion.latest().

I think this affects the doc comment and CSR.

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

PR: https://git.openjdk.java.net/jdk/pull/5973


More information about the compiler-dev mailing list