Uploaded image for project: 'Commons OGNL (Dormant)'
  1. Commons OGNL (Dormant)
  2. OGNL-229

Error appears parsing a constructor after + or something other: "[source error] ; is missing"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.3, 3.0
    • None
    • ExpressionCompiler
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            blackie Sergey Peryshkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: