Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1979

LocalizedPropertiesLoader doesn't handle whitespace before comments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.1.3
    • 4.1.7
    • Framework
    • None

    Description

      A comment marker preceded by white spaces is not recognized as the start of a comment but Javadoc of java.util.Properties states that a comment can be preceded by white spaces: "A comment line has an ASCII '#' or '!' as its first non-white space character".

      The bug can be fixed very simply: in the load() method just move up the following line of code

      _extendedReader.skipCharacters(WHITESPACE);

      so that it is the first line in the while loop.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pnavato Pino Navato
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: