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

Bridge method may shadow inherited initializer method

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.1.16.Final, 2.1.0.Final
    • Fix Version/s: 2.1.1.Final, 2.2.0.Alpha1
    • Component/s: None
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: