Wicket
  1. Wicket
  2. WICKET-1636

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development