Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expression default value with DOUBLE_COLON #193

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

radcortez
Copy link
Member

No description provided.

@radcortez radcortez requested a review from dmlloyd October 21, 2022 16:38
@@ -551,4 +551,22 @@ public void testPoint46() {
assertEquals("", c.getExpandedDefault());
}), "Should expand to empty string");
}

@Test
void doubleColonFlagAndDefault() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be testPoint7_5 or whatever to correlate above. Also missing are the following cases:

  • foo.bar::baz:something
  • foo.bar::baz::something
  • foo.bar:baz::something
  • foo.bar:baz:something

With, and without, DOUBLE_COLON set.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering what should foo.bar::baz:something expand to. I think it makes sense that the resulting key is the entire expression since the DOUBLE_COLON flag states that the entire content is encoded into the key, but I can see people expecting to encode only foo.bar::baz in the key and use the default something.

@radcortez radcortez merged commit eb96399 into smallrye:main Oct 25, 2022
@radcortez radcortez added this to the 1.13.2 milestone Oct 25, 2022
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.

2 participants