ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Sposetti (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-10965) Views: @Inject using com.google.inject.Inject is broken.
Date Wed, 06 May 2015 20:25:02 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-10965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jeff Sposetti updated AMBARI-10965:
-----------------------------------
    Affects Version/s: 2.0.1

> 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)

Mime
View raw message