You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2012/12/27 09:12:12 UTC

[jira] [Commented] (OGNL-229) Error appears parsing a constructor after + or something other: "[source error] ; is missing"

    [ https://issues.apache.org/jira/browse/OGNL-229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13539860#comment-13539860 ] 

Lukasz Lenart commented on OGNL-229:
------------------------------------

I've tested with the latest available revision and these tests are failing, so I cannot find when it was introduced. It works that way more than 5 years now :-)
                
> Error appears parsing a constructor after + or something other: "[source error] ; is missing"
> ---------------------------------------------------------------------------------------------
>
>                 Key: OGNL-229
>                 URL: https://issues.apache.org/jira/browse/OGNL-229
>             Project: Commons OGNL
>          Issue Type: Bug
>          Components: ExpressionCompiler
>    Affects Versions: 2.7.3, 3.0
>            Reporter: Sergey Peryshkin
>
> Worked well on 2.6.9.
> I've tried to add some tests to StaticsAndConstructorsTest:
> {code:java}
> { "' ' + new java.text.SimpleDateFormat('dd.MM.yyyy').format(testDate)", " " + new SimpleDateFormat("dd.MM.yyyy").format(ROOT.getTestDate()) },
>             { "testString + new java.text.SimpleDateFormat('dd.MM.yyyy').format(testDate)", ROOT.getTestString() + new SimpleDateFormat("dd.MM.yyyy").format(ROOT.getTestDate()) },
>             { "testString + ' ' + new java.text.SimpleDateFormat('dd.MM.yyyy').format(testDate)", ROOT.getTestString() + " " + new SimpleDateFormat("dd.MM.yyyy").format(ROOT.getTestDate()) },
> {code}
> and all of it has failed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira