Tom Beerbower created AMBARI-10965:
--------------------------------------

             Summary: Views: @Inject using com.google.inject.Inject is broken.
                 Key: AMBARI-10965
                 URL: https://issues.apache.org/jira/browse/AMBARI-10965
             Project: Ambari
          Issue Type: Bug
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower
             Fix For: 2.1.0, 2.0.1


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to