Velocity
  1. Velocity
  2. VELOCITY-493

RuntimeInstance.getProperty() should check overridingProperties when not yet initialized

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5 beta1
    • Fix Version/s: 1.5
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      all

      Description

      For consistency, RuntimeInstance.getProperty() should return the values previously set with setProperty() event when it hasn't already been initialized.

      runtimeInstance.setProperty("foo","bar");
      System.out.println(runtimeInstance.getProperty("foo")); // output "null"
      runtimeInstance.init();
      System.out.println(runtimeInstance.getProperty("foo")); // output "bar"

      1. runtimeinstance.patch
        0.8 kB
        Claude Brisson

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Henning Schmiedehausen
            Reporter:
            Claude Brisson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development