ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <>
Subject [jira] [Commented] (AMBARI-10965) Views: @Inject using is broken.
Date Wed, 06 May 2015 22:17:00 GMT


Hudson commented on AMBARI-10965:

FAILURE: Integrated in Ambari-trunk-Commit #2533 (See [])
AMBARI-10965 - Views: @Inject using is broken. (tbeerbower) (tbeerbower:
* ambari-server/src/main/java/org/apache/ambari/server/view/
* ambari-server/src/test/java/org/apache/ambari/server/view/

> Views: @Inject using is broken.
> --------------------------------------------------------
>                 Key: AMBARI-10965
>                 URL:
>             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 ' 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

This message was sent by Atlassian JIRA

View raw message