Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-520

"\u0061" causes lexer exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5 beta2
    • 1.6
    • Engine
    • None

    Description

      The test:

      ===
      public void testU() throws Exception

      { VelocityEngine ve = new VelocityEngine(); ve.init(); Context context = new VelocityContext(); StringWriter writer; writer = new StringWriter(); ve.evaluate(context, writer, "test","#set($v = \"\\u0061\")$v"); //assertEquals("a", writer.toString()); }

      ===

      I think "\u0061" shoud produce "a", see VELOCITY-519. But if not, this should produce string "\u0061", literally, but not exception, as now.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yozh Stepan Koltsov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: