You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org> on 2012/12/02 22:03:59 UTC
[jira] [Updated] (FELIX-2892) Get SCR annotations to work with
Scala
[ https://issues.apache.org/jira/browse/FELIX-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reto Bachmann-Gmür updated FELIX-2892:
--------------------------------------
Attachment: Foo.class
I'm having problems also at runtime, I'm getting the error:
zz>val t = $[Foo]
error: error while loading Foo, Missing dependency 'class org.apache.felix.scr.annotations.Component', required by org/apache/clerezza/jaxrs/stanbol/webfragements/Foo.class
Foo.class is attached, Foo.scala looks as follows:
package org.apache.clerezza.jaxrs.stanbol.webfragements
import org.apache.felix.scr.annotations._
@Component
@Service
class Foo {
println("fooling")
def bar() {
var r = getClass.getResource("META-INF/MANIFEST.MF")
println(r)
}
}
> Get SCR annotations to work with Scala
> --------------------------------------
>
> Key: FELIX-2892
> URL: https://issues.apache.org/jira/browse/FELIX-2892
> Project: Felix
> Issue Type: Improvement
> Components: Maven SCR Plugin
> Reporter: Reto Bachmann-Gmür
> Assignee: Carsten Ziegeler
> Fix For: maven-scr-plugin-1.8.2
>
> Attachments: Foo.class
>
>
> Currently the maven scr plugin doesn't work with scala, teh main reason for this is that the annotation have only source scope and the adding of bind-methods happe on a source rather than a bytecode level.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira