Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-10965

Views: @Inject using com.google.inject.Inject is broken.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.1, 2.1.0
    • None
    • None

    Description

      There was a class loader change that makes the view load the classes from the view loader first then from the parent. I think that the view framework is loading the Inject annotation from the parent class loader while the view itself is now loading the inject annotation from the view loader.
      The javax classes are an exception... always loaded from the parent, so 'import javax.inject.Inject' works while 'import com.google.inject.Inject ' does not.
      My example using the java inject annotation works, the Slider and Hive views using the google annotation do not.
      Bottom line is that @Inject into view components is broken if they use the google inject annotation.

      Attachments

        Issue Links

          Activity

            People

              tbeerbower Tom Beerbower
              tbeerbower Tom Beerbower
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: