[
https://issues.apache.org/jira/browse/TUSCANY-2165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589106#action_12589106
]
ant elder commented on TUSCANY-2165:
------------------------------------
Thanks for the lates patch, I've applied it locally but now running the test i
get a failure:
Tests run: 7, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 1.546 sec <<<
FAILURE!
atReference2(org.apache.tuscany.sca.vtest.javaapi.annotations.reference.ReferenceAnnotationTestCase)
Time elapsed: 0 sec <<< FAILURE!
java.lang.AssertionError: getB5Name expected to fail with NPE
at org.junit.Assert.fail(Assert.java:69)
at
org.apache.tuscany.sca.vtest.javaapi.annotations.reference.ReferenceAnnotationTestCase.atReference2(ReferenceAnnotationTestCase.java:122)
Is that expected?
> Java runtime should inject service references to field with common name in
> absence of @Reference
> -------------------------------------------------------------------------------------------------
>
> Key: TUSCANY-2165
> URL: https://issues.apache.org/jira/browse/TUSCANY-2165
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-Next
> Reporter: Kevin Williams
> Priority: Minor
> Attachments: TUSCANY-2165-revised-test.patch, TUSCANY-2165.patch
>
>
> The Java Annotations&APIs specification Lines 1407, 1408, 1409, 1410 ...
> * References may also be injected via public setter methods even when the
> * "@Reference" annotation is not present. However, the "@Reference"
> * annotation must be used in order to inject a reference onto a non
> public
> * field. In the case where there is no "@Reference" annotation, the name
> of
> * the reference is the same as the name of the field or setter.
> The vTest:
> org.apache.tuscany.sca.vtest.javaapi.ReferenceAnnotationTestCase.atReference2
> demonstrates this issue
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]