[ http://issues.apache.org/jira/browse/TUSCANY-259?page=all ]
Jim Marino reassigned TUSCANY-259:
----------------------------------
Assign To: Jim Marino
> Core tests fail if assertions are turned on
> -------------------------------------------
>
> Key: TUSCANY-259
> URL: http://issues.apache.org/jira/browse/TUSCANY-259
> Project: Tuscany
> Type: Bug
> Components: Java SCA Core
> Reporter: Daniel Kulp
> Assignee: Jim Marino
>
> Several tests (40 to be exact) fail if assertions are turned on in the VM
> that maven is running in. (add -ea to your MAVEN_OPTS)
> The cause is:
> public AutowireExtensibilityElement(Method m) {
> assert(method.getParameterTypes().length == 1): "Illegal number of
> parameters";
> method = m;
> }
> The method is allowed to be null, but if it is, evaluating the assertion
> causes a NullPointerException. It should be:
> assert(method == null || method.getParameterTypes().length == 1)......
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira