[lworld] Integrated: 8293183: [lworld] add missing tests for functional interfaces
Vicente Romero
vromero at openjdk.org
Wed Aug 31 19:48:27 UTC 2022
On Wed, 31 Aug 2022 19:33:29 GMT, Vicente Romero <vromero at openjdk.org> wrote:
> this PR is adding some additional regression tests for functional interfaces, covering this assertion on section: 9.8 Functional Interfaces of [1]:
>
> * A functional interface is an interface that is not declared with one of the modifiers sealed, identity, or value...
>
> but this should apply too to functional interfaces which are not explicitly declared with the `identity` modifier. So this code should not be accepted:
>
> identity interface I {
> void m();
> }
>
> @FunctionalInterface
> interface J extends I {}
>
> [1] http://cr.openjdk.java.net/~dlsmith/jep8277163/jep8277163-20220519/specs/value-objects-jls.html#jls-9.8
This pull request has now been integrated.
Changeset: d38f3947
Author: Vicente Romero <vromero at openjdk.org>
URL: https://git.openjdk.org/valhalla/commit/d38f39479671c276e86f03b56a52091d1c2ce458
Stats: 38 lines in 1 file changed: 34 ins; 2 del; 2 mod
8293183: [lworld] add missing tests for functional interfaces
-------------
PR: https://git.openjdk.org/valhalla/pull/735
More information about the valhalla-dev
mailing list