RFR: JDK-8250768: javac should be adapted to changes in JEP 12 [v4]
Jan Lahoda
jlahoda at openjdk.java.net
Thu Oct 29 09:46:47 UTC 2020
On Tue, 27 Oct 2020 16:11:18 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
>> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/Utils.java line 2980:
>>
>>> 2978: }
>>> 2979:
>>> 2980: public enum DeclarationPreviewLanguageFeatures {
>>
>> General thinking aloud question ... how does all this interact with source or release options for an earlier release?
>
> I don't think there should be much interaction with -source <older-version>. We don't support preview features from previous version or preview class files from previous versions, so I think it should be enough to handle the currently present preview features.
We don't support preview features from previous releases, AFAIK. So javadoc for JDK 16 should not accept e.g. record class when running with -source 15.
-------------
PR: https://git.openjdk.java.net/jdk/pull/703
More information about the build-dev
mailing list