You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2026/05/13 17:55:00 UTC

[jira] [Updated] (CONFIGURATION-825) INIConfiguration marks exceptions that will not be thrown

     [ https://issues.apache.org/jira/browse/CONFIGURATION-825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory updated CONFIGURATION-825:
------------------------------------------
    Fix Version/s: 2.15.1
                       (was: 2.15.0)

>  INIConfiguration marks exceptions that will not be thrown
> ----------------------------------------------------------
>
>                 Key: CONFIGURATION-825
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-825
>             Project: Commons Configuration
>          Issue Type: Improvement
>          Components: Expression engine
>    Affects Versions: 2.8.0
>         Environment: java 8,win ,the file content is "/error/"
>            Reporter: ChenYuwang
>            Assignee: Rob Tompkins
>            Priority: Major
>             Fix For: 2.15.1
>
>
> INIConfiguration.read() & INIConfiguration.write() marks ConfigurationException, but has no chance to throw. I understand that a ConfigurationException should be thrown if INIConfiguration read something that is not  ini‘s format, but currently it doesn't. INIConfiguration just ignores everything it doesn't recognize. For example, the file content is "/error/"



--
This message was sent by Atlassian Jira
(v8.20.10#820010)