Integrated: 8282823: javac should constrain more uses of preview APIs

Jan Lahoda jlahoda at openjdk.java.net
Mon Apr 25 09:14:39 UTC 2022


On Thu, 10 Mar 2022 12:28:27 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.

This pull request has now been integrated.

Changeset: 4c22a9bc
Author:    Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/4c22a9bcf9a694f7a08e0e8fa8eb5e915095cec6
Stats:     508 lines in 3 files changed: 507 ins; 1 del; 0 mod

8282823: javac should constrain more uses of preview APIs

Reviewed-by: jlaskey, mcimadamore, vromero

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

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


More information about the compiler-dev mailing list