XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 1.4
    • None
    • None
    • None
    • Debian Etch i386, Java 1.6

    Description

      PropertiesConfiguration does not auto save the properties file under the following circumstances:

      File before:
      key=test2

      PropertiesConfiguration conf2 = new PropertiesConfiguration();
      conf2.load(new File("test2.properties"));
      conf2.setAutoSave(true);
      System.out.println("Conf2: Before changing value:" + conf2.getProperty("key"));
      conf2.setProperty("key", "test2after");
      System.out.println("Conf2: After changing value:" + conf2.getProperty("key"));

      File after:
      key=test2

      If you use the contrcutor PropertiesConfigurator(File file); everything is fine!

      Attachments

        Activity

          People

            Unassigned Unassigned
            eliot André Geisler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified