Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1636

WebPage.onAfterRender compares configurationType String using == operator, not equals method

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.3, 1.4-M1
    • Fix Version/s: 1.3.5, 1.4-M3
    • Component/s: None
    • Labels:
      None

      Description

      See http://svn.apache.org/repos/asf/wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java onAfterRender method, line reading:

      		if (getApplication().getConfigurationType() == Application.DEVELOPMENT)
      

      A String is being compared for identity, not equality, which is incorrect.

        Attachments

          Activity

            People

            • Assignee:
              ivaynberg Igor Vaynberg
              Reporter:
              maxb Max Bowsher
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: