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

Bridge method may shadow inherited initializer method

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: