On Tue, 27 Oct 2020 16:11:18 GMT, Jan Lahoda <[email protected]> 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