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

LocalizedPropertiesLoader doesn't handle whitespace before comments

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.1.3
    • Fix Version/s: 4.1.7
    • Component/s: Framework
    • Labels:
      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

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

              Dates

              • Created:
                Updated: