commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Darmont (JIRA)" <j...@apache.org>
Subject [jira] Created: (CONFIGURATION-345) PropertiesConfiguration does not use the default encoding to load files
Date Mon, 03 Nov 2008 10:46:44 GMT
PropertiesConfiguration does not use the default encoding to load files
-----------------------------------------------------------------------

                 Key: CONFIGURATION-345
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-345
             Project: Commons Configuration
          Issue Type: Bug
    Affects Versions: 1.5
         Environment: Win XP / Sun JVM 1.5.0_14
            Reporter: Guillaume Darmont


The piece of code

{code:title=PropertiesConfiguration.java}
    // initialization block to set the encoding before loading the file in the constructors
    {
        setEncoding(DEFAULT_ENCODING);
    }
{code}

seems to set correctly the default encoding, but this block is called after "super()" in constructors.

So when using either PropertiesConfiguration(java.io.File file), PropertiesConfiguration(java.lang.String
fileName) or PropertiesConfiguration(java.net.URL url), the super() statement is called, and
it loads the file without the default encoding.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message