RFR: 8282823: javac should constrain more uses of preview APIs [v2]

Joe Darcy darcy at openjdk.java.net
Tue Mar 15 23:27:43 UTC 2022


On Mon, 14 Mar 2022 20:19:16 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

>> Consider a class or interface with a method marked as preview. Subclassing the class or implementing the interface by itself should not cause a preview error/warning (as that would be problematic for Loom), but overriding the method should produce a preview error/warning.
>> 
>> This patch adds the error/warning in case a preview method is overridden.
>
> Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Only produce preview warnings for immediate overriders of preview methods.

Please file a CSR for the behave change under discussion. Thanks.

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

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


More information about the compiler-dev mailing list