You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Pino Navato (JIRA)" <de...@tapestry.apache.org> on 2007/12/14 15:35:43 UTC

[jira] Created: (TAPESTRY-1979) EncodedPropertiesLoader doesn't handles comments correctly

EncodedPropertiesLoader doesn't handles comments correctly
----------------------------------------------------------

                 Key: TAPESTRY-1979
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1979
             Project: Tapestry
          Issue Type: Bug
          Components: Framework
    Affects Versions: 4.1.3
            Reporter: Pino Navato
            Priority: Minor


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.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1979) LocalizedPropertiesLoader doesn't handle whitespace before comments

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Andreou updated TAPESTRY-1979:
--------------------------------------

    Fix Version/s: 4.1.6
          Summary: LocalizedPropertiesLoader doesn't handle whitespace before comments  (was: EncodedPropertiesLoader doesn't handles comments correctly)

> LocalizedPropertiesLoader doesn't handle whitespace before comments
> -------------------------------------------------------------------
>
>                 Key: TAPESTRY-1979
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1979
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Pino Navato
>            Priority: Minor
>             Fix For: 4.1.6
>
>
> 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.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1979) LocalizedPropertiesLoader doesn't handle whitespace before comments

Posted by "Marcus Schulte (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcus Schulte updated TAPESTRY-1979:
-------------------------------------

    Fix Version/s:     (was: 4.1.6)
                   4.1.7

> LocalizedPropertiesLoader doesn't handle whitespace before comments
> -------------------------------------------------------------------
>
>                 Key: TAPESTRY-1979
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1979
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.3
>            Reporter: Pino Navato
>            Priority: Minor
>             Fix For: 4.1.7
>
>
> 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.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org