Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.5
-
3.05
-
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
- relates to
-
JRASERVER-13625 Implicit profiling functionality broken
- Closed