You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Andrei Pozolotin (Created) (JIRA)" <ji...@apache.org> on 2011/10/25 21:14:32 UTC

[jira] [Created] (FELIX-3187) scr annotations: scala support

scr annotations: scala support
------------------------------

                 Key: FELIX-3187
                 URL: https://issues.apache.org/jira/browse/FELIX-3187
             Project: Felix
          Issue Type: Bug
          Components: Maven SCR Plugin
            Reporter: Andrei Pozolotin


scr annotations: scala support

this would need to change:
a) annotaion retention to runtime;
b) process compiled class files, not java/scala source files - first, in the maven plugin;

it is also more in line with current osgi scr annotations rfc;

example:

1) scala source:

import org.apache.felix.scr.annotations.Component
import org.apache.felix.scr.annotations.Activate

@Component
class Hello {

  @Activate
  protected def activate {
    
  }

}

2) class view via java decompiler:

import org.apache.felix.scr.annotations.Activate;
import org.apache.felix.scr.annotations.Component;
import scala.ScalaObject;
import scala.reflect.ScalaSignature;

@Component
@ScalaSignature(bytes="...")
public class Hello
  implements ScalaObject
{
  @Activate
  public void activate()
  {
  }
}

but scr maven plugin does not see it.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (FELIX-3187) scr annotations: scala support

Posted by "Reto Bachmann-Gmür (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158522#comment-13158522 ] 

Reto Bachmann-Gmür commented on FELIX-3187:
-------------------------------------------

I think this is a duplicate of FELIX-2892
                
> scr annotations: scala support
> ------------------------------
>
>                 Key: FELIX-3187
>                 URL: https://issues.apache.org/jira/browse/FELIX-3187
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>            Reporter: Andrei Pozolotin
>
> scr annotations: scala support
> this would need to change:
> a) annotaion retention to runtime;
> b) process compiled class files, not java/scala source files - first, in the maven plugin;
> it is also more in line with current osgi scr annotations rfc;
> example:
> 1) scala source:
> import org.apache.felix.scr.annotations.Component
> import org.apache.felix.scr.annotations.Activate
> @Component
> class Hello {
>   @Activate
>   protected def activate {
>     
>   }
> }
> 2) class view via java decompiler:
> import org.apache.felix.scr.annotations.Activate;
> import org.apache.felix.scr.annotations.Component;
> import scala.ScalaObject;
> import scala.reflect.ScalaSignature;
> @Component
> @ScalaSignature(bytes="...")
> public class Hello
>   implements ScalaObject
> {
>   @Activate
>   public void activate()
>   {
>   }
> }
> but scr maven plugin does not see it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (FELIX-3187) scr annotations: scala support

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved FELIX-3187.
-------------------------------------

    Resolution: Duplicate
    
> scr annotations: scala support
> ------------------------------
>
>                 Key: FELIX-3187
>                 URL: https://issues.apache.org/jira/browse/FELIX-3187
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>            Reporter: Andrei Pozolotin
>
> scr annotations: scala support
> this would need to change:
> a) annotaion retention to runtime;
> b) process compiled class files, not java/scala source files - first, in the maven plugin;
> it is also more in line with current osgi scr annotations rfc;
> example:
> 1) scala source:
> import org.apache.felix.scr.annotations.Component
> import org.apache.felix.scr.annotations.Activate
> @Component
> class Hello {
>   @Activate
>   protected def activate {
>     
>   }
> }
> 2) class view via java decompiler:
> import org.apache.felix.scr.annotations.Activate;
> import org.apache.felix.scr.annotations.Component;
> import scala.ScalaObject;
> import scala.reflect.ScalaSignature;
> @Component
> @ScalaSignature(bytes="...")
> public class Hello
>   implements ScalaObject
> {
>   @Activate
>   public void activate()
>   {
>   }
> }
> but scr maven plugin does not see it.

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

[jira] [Closed] (FELIX-3187) scr annotations: scala support

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler closed FELIX-3187.
-----------------------------------

    
> scr annotations: scala support
> ------------------------------
>
>                 Key: FELIX-3187
>                 URL: https://issues.apache.org/jira/browse/FELIX-3187
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>            Reporter: Andrei Pozolotin
>
> scr annotations: scala support
> this would need to change:
> a) annotaion retention to runtime;
> b) process compiled class files, not java/scala source files - first, in the maven plugin;
> it is also more in line with current osgi scr annotations rfc;
> example:
> 1) scala source:
> import org.apache.felix.scr.annotations.Component
> import org.apache.felix.scr.annotations.Activate
> @Component
> class Hello {
>   @Activate
>   protected def activate {
>     
>   }
> }
> 2) class view via java decompiler:
> import org.apache.felix.scr.annotations.Activate;
> import org.apache.felix.scr.annotations.Component;
> import scala.ScalaObject;
> import scala.reflect.ScalaSignature;
> @Component
> @ScalaSignature(bytes="...")
> public class Hello
>   implements ScalaObject
> {
>   @Activate
>   public void activate()
>   {
>   }
> }
> but scr maven plugin does not see it.

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