Uploaded image for project: 'Commons Chain'
  1. Commons Chain
  2. CHAIN-81

FacesWebContext.FacesWebContext(FacesContext context) ctor calls overridable method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0
    • None
    • Web
    • None

    Description

      Ctors should never call overrideable methods.

      In this case, the called method only sets the context, so the code could be copied.

      If it's essential to give overridable access to a method called by a ctor, create a private method to do the work and call it from ctor and the exported method.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: