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

Joe Darcy darcy at openjdk.java.net
Mon Oct 25 22:01:47 UTC 2021


On Mon, 25 Oct 2021 15:46:56 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> 
> 
> > In the latest push, stubbed in support for the reverse mapping from SourceVersion to a runtime version. For now, limiting the mapping to RELEASE_9 and higher since Runtime.Version was added in 9.
> 
> Thanks for adding the reverse mapping! Is there a problem with Source.Version representing a version earlier than 9, other than that it was added in that release? Supporting earlier versions would be very useful for javadoc, where we support versions starting from 7.

Changed to RELEASE 6 and later in the latest push; the javax.lang.model API was added in JDK 6.

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

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


More information about the compiler-dev mailing list