You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2010/01/06 22:09:55 UTC

[jira] Closed: (TAP5-905) Tapestry should support the full range of Unicode characters acceptible by Java as property names

     [ https://issues.apache.org/jira/browse/TAP5-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-905.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.2.0
         Assignee: Howard M. Lewis Ship

> Tapestry should support the full range of Unicode characters acceptible by Java as property names
> -------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-905
>                 URL: https://issues.apache.org/jira/browse/TAP5-905
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>            Reporter: Manuel Sugawara
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.2.0
>
>         Attachments: patch0.txt
>
>
> Valid java identifiers allows some special characters. So, a valid classes in java with properties such as número cannot be referenced from tapestry templates using the notation ${número}. The following patch fixes the problem:
> *** ./tapestry-core/src/main/antlr/org/apache/tapestry5/internal/antlr/PropertyExpressionLexer.g~	2009-10-22 18:48:23.000000000 -0500
> --- ./tapestry-core/src/main/antlr/org/apache/tapestry5/internal/antlr/PropertyExpressionLexer.g	2009-10-22 17:13:19.000000000 -0500
> ***************
> *** 91,97 ****
>   THIS	:	T H I S;
>   
>   IDENTIFIER 
> ! 	:	LETTER (LETTER | DIGIT | '_')*;
>   
>   // The Safe Dereference operator understands not to de-reference through
>   // a null.
> --- 91,122 ----
>   THIS	:	T H I S;
>   
>   IDENTIFIER 
> !     :   JAVA_ID_START (JAVA_ID_PART)*
> !     ;
> ! 
> ! fragment
> ! JAVA_ID_START
> !     :  '\u0024'
> !     |  '\u0041'..'\u005a'
> !     |  '\u005f'
> !     |  '\u0061'..'\u007a'
> !     |  '\u00c0'..'\u00d6'
> !     |  '\u00d8'..'\u00f6'
> !     |  '\u00f8'..'\u00ff'
> !     |  '\u0100'..'\u1fff'
> !     |  '\u3040'..'\u318f'
> !     |  '\u3300'..'\u337f'
> !     |  '\u3400'..'\u3d2d'
> !     |  '\u4e00'..'\u9fff'
> !     |  '\uf900'..'\ufaff'
> !     ;
> ! 
> ! fragment
> ! JAVA_ID_PART
> !     :  JAVA_ID_START
> !     |  '\u0030'..'\u0039'
> !     ;
> ! 
>   
>   // The Safe Dereference operator understands not to de-reference through
>   // a null.

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