close
Skip to content

fix: restore public static final String references to literals for backward compatibility - #5988

Merged
vlsi merged 1 commit into
apache:masterfrom
vlsi:compatibility
Jun 15, 2023
Merged

fix: restore public static final String references to literals for backward compatibility#5988
vlsi merged 1 commit into
apache:masterfrom
vlsi:compatibility

Conversation

@vlsi

@vlsi vlsi commented Jun 15, 2023

Copy link
Copy Markdown
Collaborator

Motivation and Context

Previously, TestElement.NAME and similar constants were coded as literals, and it was possible to use those references in annotation values.

If the replace literals with method calls, then it would be impossible to use the fields in annotation values.

So the static fields are reverted to literals.

This partially reverts commits like #678,

…ckward compatibility

Previously, TestElement.NAME and similar constants were coded as literals,
and it was possible to use those references in annotation values.

If the replace literals with method calls, then it would be impossible to use
the fields in annotation values.

So the static fields are reverted to literals.

This partially reverts commits like apache#678,
@vlsi vlsi added this to the 5.6 milestone Jun 15, 2023
@vlsi
vlsi merged commit 4379704 into apache:master Jun 15, 2023
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