Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2378

Util replaceProperties fails when the input start with $

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 4.1.4
    • Fix Version/s: 4.1.5
    • Labels:
      None

      Description

      The following test was failing

          public void testBeginWithDollar() {
              Properties p = new Properties();
              p.put("hello.world", "Hello World");
              String input="${hello.world:foo}";
              String out=Util.replaceProperties(input, p);
              assert out.equals("Hello World");
          }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dlovison Diego Lovison
                Reporter:
                dlovison Diego Lovison
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: