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

Bridge method may shadow inherited initializer method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.1.Final, 2.2.0.Alpha1
    • 1.1.16.Final, 2.1.0.Final
    • None
    • None

      Compiler may add bridge methods to make methods of package-private base class visible:

      // Note package-private visibility
      abstract Bar {
         @Inject
         public void init(Qux qux) {
           ...
         }
      }
      public Foo extends Bar {
      }
      

      Weld assumes these methods override the original methods -> Foo has no injection points.

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

                Created:
                Updated:
                Resolved: