You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mridul Pathak (Jira)" <ji...@apache.org> on 2026/10/27 13:32:00 UTC

[jira] [Created] (OFBIZ-13748) Make ModelTheme, ModelScreen, ModelMenu, ModelMenuItem and ModelTree final

Mridul Pathak created OFBIZ-13748:
-------------------------------------

             Summary: Make ModelTheme, ModelScreen, ModelMenu, ModelMenuItem and ModelTree final
                 Key: OFBIZ-13748
                 URL: https://issues.apache.org/jira/browse/OFBIZ-13748
             Project: OFBiz
          Issue Type: Sub-task
          Components: framework/widget
    Affects Versions: Upcoming Branch
            Reporter: Mridul Pathak
            Assignee: Mridul Pathak


These models build their children in their constructors and pass this to them as a back-reference. The renderers need that back-reference. The models are parsed once, shared between threads and always created with new by their own factories, so the classes become final. That makes passing this from the constructor safe, and javac no longer reports it. WidgetFactory and WidgetLoader, the supported extension points, are unaffected.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)