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

The spec suggests that there is a Optional.of(String, String) method, there isn't #678

Open
tevans78 opened this issue Mar 5, 2021 · 0 comments
Labels
bug 🪲 An error in the implementation code or documentation
Milestone

Comments

@tevans78
Copy link
Contributor

tevans78 commented Mar 5, 2021

https://github.com/eclipse/microprofile-config/blob/2.0/spec/src/main/asciidoc/configexamples.asciidoc#config-value-conversion-rules

The conversion rules table tries to show the conversion of a Optional<List<String>> like this...

Input String Output type Method behaviour
"foo,bar" String getOptionalValues Optional.of("foo", "bar")

There is no method that matches Optional.of("foo", "bar"). This is confusing and misleading.

@tevans78 tevans78 added the bug 🪲 An error in the implementation code or documentation label Mar 5, 2021
@Emily-Jiang Emily-Jiang added this to the Config 3.2 milestone Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 An error in the implementation code or documentation
Projects
None yet
Development

No branches or pull requests

2 participants