You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Daniel Kulp (JIRA)" <tu...@ws.apache.org> on 2006/05/03 04:38:46 UTC
[jira] Created: (TUSCANY-259) Core tests fail if assertions are
turned on
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
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
[jira] Updated: (TUSCANY-259) Core tests fail if assertions are
turned on
Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-259?page=all ]
Jean-Sebastien Delfino updated TUSCANY-259:
-------------------------------------------
Fix Version: 0.9x
Version: 0.9x
> 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: 0.9x
> Reporter: Daniel Kulp
> Assignee: Jim Marino
> Fix For: 0.9x
>
> 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
[jira] Closed: (TUSCANY-259) Core tests fail if assertions are
turned on
Posted by "Jim Marino (JIRA)" <tu...@ws.apache.org>.
[ 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
[jira] Assigned: (TUSCANY-259) Core tests fail if assertions are
turned on
Posted by "Jim Marino (JIRA)" <tu...@ws.apache.org>.
[ 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