[
https://issues.apache.org/jira/browse/OGNL-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart updated OGNL-229:
-------------------------------
Description:
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.
was:
Worked well on 2.6.9.
I've tried to add some tests to StaticsAndConstructorsTest:
{ "' ' + 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()) },
and all of it has failed.
> 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