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

Hannes Wallnöfer hannesw at openjdk.java.net
Fri Oct 22 07:57:06 UTC 2021


On Wed, 20 Oct 2021 06:12:12 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.

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

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


More information about the compiler-dev mailing list