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

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

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • 3.0.3.Final, 2.4.7.Final
    • None
    • None
    • None

      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.

            mkouba@redhat.com Martin Kouba
            mkouba@redhat.com Martin Kouba
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: