RFR: 8256755: Update build.tools.depend.Depend to handle record components in API signatures

Jan Lahoda jlahoda at openjdk.java.net
Tue Nov 24 10:13:56 UTC 2020


On Tue, 24 Nov 2020 09:59:44 GMT, Chris Hegarty <chegar at openjdk.org> wrote:

> The `Depend` build tool creates a hash of a module's API elements, so that it can determine if downstream modules require recompilation. The build tool fails (throws an exception) when it encounters an "unknown" record attribute/component - the build tool predates records.
> 
> The components of a public record class, that is a member of an exported package, are logically part of the module's API. The name, type, and order are significant. This issue updates the build tool to include the aforementioned component characteristics.
> 
> This issue is a blocker to adding any public record types to the JDK - since the build will fail.

Looks great, thanks!

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

Marked as reviewed by jlahoda (Reviewer).

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


More information about the compiler-dev mailing list