|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (FELIX-1570) Inherited methods are ignored when searching for bind/unbind methodsInherited methods are ignored when searching for bind/unbind methods
-------------------------------------------------------------------- Key: FELIX-1570 URL: https://issues.apache.org/jira/browse/FELIX-1570 Project: Felix Issue Type: Bug Components: Maven SCR Plugin Affects Versions: maven-scr-plugin-1.2.0 Reporter: Geert Schuring I have a class that inherits 2 protected methods from its parent class and I want to use these methods to bind and unbind the LogService. I've set the following annotation: @Reference( name="LogService", referenceInterface=LogService.class, cardinality=ReferenceCardinality.MANDATORY_UNARY, policy=ReferencePolicy.DYNAMIC, bind="setLogService", unbind="unsetLogService") The maven src plugin comes with the following messages: [INFO] [scr:scr {execution: generate-scr-scrdescriptor}] [WARNING] @scr.reference: Method setLogService should be declared protected (Java annotations in nl.interact911.ipds.connector.xmpp.XMPPConnector) [ERROR] @scr.reference: Missing method unsetLogService for reference LogService (Java annotations in nl.interact911.ipds.connector.xmpp.XMPPConnector) The SCR plugin apparently ignores inherited methods, because i have no problem calling the mentioned methods from within the annotated class. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Assigned: (FELIX-1570) Inherited methods are ignored when searching for bind/unbind methods[ https://issues.apache.org/jira/browse/FELIX-1570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler reassigned FELIX-1570: --------------------------------------- Assignee: Carsten Ziegeler > Inherited methods are ignored when searching for bind/unbind methods > -------------------------------------------------------------------- > > Key: FELIX-1570 > URL: https://issues.apache.org/jira/browse/FELIX-1570 > Project: Felix > Issue Type: Bug > Components: Maven SCR Plugin > Affects Versions: maven-scr-plugin-1.2.0 > Reporter: Geert Schuring > Assignee: Carsten Ziegeler > > I have a class that inherits 2 protected methods from its parent class and I want to use these methods to bind and unbind the LogService. I've set the following annotation: > @Reference( > name="LogService", > referenceInterface=LogService.class, > cardinality=ReferenceCardinality.MANDATORY_UNARY, > policy=ReferencePolicy.DYNAMIC, > bind="setLogService", > unbind="unsetLogService") > The maven src plugin comes with the following messages: > [INFO] [scr:scr {execution: generate-scr-scrdescriptor}] > [WARNING] @scr.reference: Method setLogService should be declared protected (Java annotations in nl.interact911.ipds.connector.xmpp.XMPPConnector) > [ERROR] @scr.reference: Missing method unsetLogService for reference LogService (Java annotations in nl.interact911.ipds.connector.xmpp.XMPPConnector) > The SCR plugin apparently ignores inherited methods, because i have no problem calling the mentioned methods from within the annotated class. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Commented: (FELIX-1570) Inherited methods are ignored when searching for bind/unbind methods[ https://issues.apache.org/jira/browse/FELIX-1570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773139#action_12773139 ] Carsten Ziegeler commented on FELIX-1570: ----------------------------------------- Can you show us the java code of the two classes? (you can strip it down to to just contain the annotations and bind/unbind methods) From the output, it seems that setLogService is found but it's not a protected method (see the warning), while unsetLogService is not found - so there must be a difference between the two methods. > Inherited methods are ignored when searching for bind/unbind methods > -------------------------------------------------------------------- > > Key: FELIX-1570 > URL: https://issues.apache.org/jira/browse/FELIX-1570 > Project: Felix > Issue Type: Bug > Components: Maven SCR Plugin > Affects Versions: maven-scr-plugin-1.2.0 > Reporter: Geert Schuring > Assignee: Carsten Ziegeler > > I have a class that inherits 2 protected methods from its parent class and I want to use these methods to bind and unbind the LogService. I've set the following annotation: > @Reference( > name="LogService", > referenceInterface=LogService.class, > cardinality=ReferenceCardinality.MANDATORY_UNARY, > policy=ReferencePolicy.DYNAMIC, > bind="setLogService", > unbind="unsetLogService") > The maven src plugin comes with the following messages: > [INFO] [scr:scr {execution: generate-scr-scrdescriptor}] > [WARNING] @scr.reference: Method setLogService should be declared protected (Java annotations in nl.interact911.ipds.connector.xmpp.XMPPConnector) > [ERROR] @scr.reference: Missing method unsetLogService for reference LogService (Java annotations in nl.interact911.ipds.connector.xmpp.XMPPConnector) > The SCR plugin apparently ignores inherited methods, because i have no problem calling the mentioned methods from within the annotated class. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Closed: (FELIX-1570) Inherited methods are ignored when searching for bind/unbind methods[ https://issues.apache.org/jira/browse/FELIX-1570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Geert Schuring closed FELIX-1570. --------------------------------- Resolution: Cannot Reproduce Fix Version/s: maven-scr-plugin-1.4.1 With the current version of the maven scr plugin I cannot reproduce the problem. I guess it has been fixed. > Inherited methods are ignored when searching for bind/unbind methods > -------------------------------------------------------------------- > > Key: FELIX-1570 > URL: https://issues.apache.org/jira/browse/FELIX-1570 > Project: Felix > Issue Type: Bug > Components: Maven SCR Plugin > Affects Versions: maven-scr-plugin-1.2.0 > Reporter: Geert Schuring > Assignee: Carsten Ziegeler > Fix For: maven-scr-plugin-1.4.1 > > > I have a class that inherits 2 protected methods from its parent class and I want to use these methods to bind and unbind the LogService. I've set the following annotation: > @Reference( > name="LogService", > referenceInterface=LogService.class, > cardinality=ReferenceCardinality.MANDATORY_UNARY, > policy=ReferencePolicy.DYNAMIC, > bind="setLogService", > unbind="unsetLogService") > The maven src plugin comes with the following messages: > [INFO] [scr:scr {execution: generate-scr-scrdescriptor}] > [WARNING] @scr.reference: Method setLogService should be declared protected (Java annotations in nl.interact911.ipds.connector.xmpp.XMPPConnector) > [ERROR] @scr.reference: Missing method unsetLogService for reference LogService (Java annotations in nl.interact911.ipds.connector.xmpp.XMPPConnector) > The SCR plugin apparently ignores inherited methods, because i have no problem calling the mentioned methods from within the annotated class. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
| Free embeddable forum powered by Nabble | Forum Help |