Skip to content

TEDEFO-5364: Stop reading the alias of fields and nodes - #77

Open
rousso wants to merge 1 commit into
ecl-2from
feature/TEDEFO-5364-no-aliases
Open

rousso wants to merge 1 commit into
ecl-2from
feature/TEDEFO-5364-no-aliases

Conversation

@rousso

@rousso rousso commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

The alias of fields and nodes is no longer read: SdkFieldV2 and SdkNodeV2 lose their alias constructor parameters and getAlias(). EFX 2 no longer accepts aliases (TEDEFO-5351), the EFX Toolkit no longer uses them, and the SDK files contain none.

This PR targets ecl-2, the branch for eforms-core 2.0.0, so that develop keeps the 1.x contract for one more release.

What changes

  • SdkFieldV2: the alias field, the alias parameter of both public constructors, the reading of alias from JSON, and getAlias() are removed.
  • SdkNodeV2: the same.
  • Tests: the two assertions on getAlias() and the alias properties of the SDK 2 test fixtures are removed.
  • pom.xml: the version becomes 2.0.0-SNAPSHOT, because removing public API needs a major version (japicmp).

The constructors and getAlias() are public API, so code that calls them must change. MDM does: when it takes eforms-core 2.0.0, its call new SdkNodeV2(..., node.getAlias()) in AbstractSymbolResolver must drop the last argument. With the default Jackson settings, JSON that still has an alias property is now refused by the @JsonCreator constructors; the constructors that take a JsonNode ignore it.

How it was checked

  • mvn verify: 133 tests pass, and japicmp accepts the change for 2.0.0.
  • The EFX Toolkit's develop passes its 2,991 tests with this version.

@rousso rousso self-assigned this Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant