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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5 beta1
    • 1.5
    • Engine
    • None
    • 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"

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            henning Henning Schmiedehausen
            cbrisson Claude Brisson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment