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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.3, 1.4-M1
    • 1.3.5, 1.4-M3
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: