[
https://issues.apache.org/jira/browse/AMBARI-10965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14531541#comment-14531541
]
Hudson commented on AMBARI-10965:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #2533 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/2533/])
AMBARI-10965 - Views: @Inject using com.google.inject.Inject is broken.
(tbeerbower) (tbeerbower:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=e4613a328683f49eb6e89da3aa5efa964af77fcc)
* ambari-server/src/main/java/org/apache/ambari/server/view/ViewClassLoader.java
*
ambari-server/src/test/java/org/apache/ambari/server/view/ViewClassLoaderTest.java
> 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
> Affects Versions: 2.0.1
> 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)