[
https://issues.apache.org/jira/browse/FELIX-5346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15529446#comment-15529446
]
Jago de Vreede commented on FELIX-5346:
---------------------------------------
Hello Pierre,
Just tested in our environment and it all works!
Thanx for the quick fix!
Just a remark: tested your example:
{code}class Base {
@Start
void init() {}
}
class Extension extends Base {
@Start
void anotherStart() {}
}{code}
But that resulted in an error: "test: error: java.lang.IllegalStateException:
detected multiple @Start annotation from class Base (on from child classes)"
This could be the desired behaviour I don't know... But that is fine for our
use case.
Tnx again
/Jago
> Start annotation not propagated to sub classes
> ----------------------------------------------
>
> Key: FELIX-5346
> URL: https://issues.apache.org/jira/browse/FELIX-5346
> Project: Felix
> Issue Type: Improvement
> Components: Dependency Manager Annotations
> Affects Versions: org.apache.felix.dependencymanager-r1
> Reporter: Jago de Vreede
> Assignee: Pierre De Rop
> Fix For: org.apache.felix.dependencymanager-r9
>
>
> Following case in pseudocode:
> {code}Class A {
> @Start
> public void start() {
> System.out.println("start");
> }
> }
> @Component
> Class B extends A {
> }{code}
> When you run this nothing is printed but the start method in A should be
> called as B extends A.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)