Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2451

Some of org.jboss.weld.environment.se.Weld fields should be probably protected

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.3.Final, 2.4.7.Final
    • Component/s: None
    • Labels:
      None

      Description

      Users are allowed to extend org.jboss.weld.environment.se.Weld and override Weld.createDeployment() method. However, a subclass cannot access the private fields such as properties or extensions. We should either disallow to extend org.jboss.weld.environment.se.Weld (that's not backward compatible) or change some modifiers so that the overriding makes sense. Also the example in Weld.createDeployment() javadoc is not ideal - ResourceLoader could be set through Weld.setResourceLoader(ResourceLoader) method.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mkouba Martin Kouba
                Reporter:
                mkouba Martin Kouba
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: