Velocity
  1. Velocity
  2. VELOCITY-126

String containing '##' is treated as unterminated String.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All

      Description

      The following template snippet

      $

      {System_err.println("###############################################")}

      Results in this output:
      [INFO,STDERR] [rrd] 1042589262000 Error in interpolating string literal :
      org.apache.velocity.runtime.parser.ParseException: Lexical error:
      org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 1,
      column 49. Encountered: <EOF> after : ""

      If you're wondering what I'm doing, I've got System.err passed into velocity as
      System_err

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Jimmy Wan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development