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

Util replaceProperties fails when the input start with $

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 4.1.5
    • 4.1.4
    • 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");
          }
      

      Attachments

        Activity

          People

            dlovison@redhat.com Diego Lovison
            dlovison@redhat.com Diego Lovison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: