You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org> on 2008/05/08 17:00:56 UTC
[jira] Assigned: (TUSCANY-2282) Poor warning issued when annotating
private field with @Callback
[ https://issues.apache.org/jira/browse/TUSCANY-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vamsavardhana Reddy reassigned TUSCANY-2282:
--------------------------------------------
Assignee: Vamsavardhana Reddy
> Poor warning issued when annotating private field with @Callback
> ----------------------------------------------------------------
>
> Key: TUSCANY-2282
> URL: https://issues.apache.org/jira/browse/TUSCANY-2282
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-Next
> Reporter: Kevin Williams
> Assignee: Vamsavardhana Reddy
> Priority: Minor
>
> I inadvertently marked a private field with @Callback and received the following warning:
> WARNING: Invalid annotation @org.osoa.sca.annotations.Callback(value=class java.lang.Void) is found on private org.apache.tuscany.sca.vtest.javaapi.conversation.lifetime.AServiceCallback org.apache.tuscany.sca.vtest.javaapi.conversation.lifetime.impl.BServiceImpl.callback
> I should have realized sooner what the real problem was (private fields cannot be annotated) but a message like:
> "WARNING: Invalid annotation @org.osoa.sca.annotations.Callback(value=class java.lang.Void) is found on private org.apache.tuscany.sca.vtest.javaapi.conversation.lifetime.AServiceCallback org.apache.tuscany.sca.vtest.javaapi.conversation.lifetime.impl.BServiceImpl.callback. You must not annotate private fields and if you do then the runtime will ignore them and only give you this warning."
> I think an exception would be even better since the application will not work without the requested injection.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.