commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OGNL-229) Error appears parsing a constructor after + or something other: "[source error] ; is missing"
Date Thu, 27 Dec 2012 08:12:12 GMT

    [ 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

Mime
View raw message