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

Util replaceProperties fails when the input start with $

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 4.1.5
    • 4.1.4
    • None

      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");
          }
      

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

                Created:
                Updated:
                Resolved: