Skip to content

Clarification of config.getValue() for an Optional #675

@Joseph-Cass

Description

@Joseph-Cass

Description
Should config.getValue("int.missing.key", OptionalInt.class) throw a NoSuchElementException according to this bit of spec? (where int.missing.key is not defined in a config source)
https://github.com/eclipse/microprofile-config/blob/03c6f05475bc9eeaada87099afa9837a58bd0f76/api/src/main/java/org/eclipse/microprofile/config/Config.java#L130-L131

If yes, It seems like this could be a relatively common mistake, which suggests to me it may be worth having a TCK for (If there isn't one already- I couldn't find one)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions