You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jim Marino (JIRA)" <tu...@ws.apache.org> on 2006/05/06 09:09:28 UTC
[jira] Closed: (TUSCANY-259) Core tests fail if assertions are
turned on
[ http://issues.apache.org/jira/browse/TUSCANY-259?page=all ]
Jim Marino closed TUSCANY-259:
------------------------------
Resolution: Fixed
> 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
> Versions: Mx
> Reporter: Daniel Kulp
> Assignee: Jim Marino
> Fix For: Mx
>
> 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