Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-13626

Renderer component does not work with profiling enabled

    XMLWordPrintable

Details

    Description

      When profiling is enabled and the Renderer component is successfully wrapped with the dynamic proxy (see JRA-13625), the initializeComponents() method of WikiRendererFactory throws a ClassCastException as it attempts to cast the Renderer component to a V2Renderer class. This cast succeeds when profiling is disabled because the Renderer component is actually an instance of V2Renderer, but with the dynamic proxy in place, the component is only seen as a Renderer object. This cast is necessary as the method uses the setComponents() method which is defined in V2Renderer but not the Renderer interface.

      The suggested solution is to promote the setComponents() method to the Renderer interface.

      Please note that this issue is also causing newly-written Selenium tests which test the Wiki Rendering functionality to break, because by default Selenium tests enable profiling.

      Attachments

        Issue Links

          Activity

            People

              mtokar Michael Tokar
              mtokar Michael Tokar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 3h
                  3h
                  Remaining:
                  Remaining Estimate - 3h
                  3h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified