You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "ZHENG Zhong (JIRA)" <pl...@jakarta.apache.org> on 2005/07/26 11:15:36 UTC
[jira] Created: (PLUTO-144) Class PlutoTestCase does not compile under JDK1.4 (in container/src/test)
Class PlutoTestCase does not compile under JDK1.4 (in container/src/test)
-------------------------------------------------------------------------
Key: PLUTO-144
URL: http://issues.apache.org/jira/browse/PLUTO-144
Project: Pluto
Type: Improvement
Components: portlet container
Versions: 1.1.0-ALPHA
Reporter: ZHENG Zhong
org.apache.pluto.util.PlutoTestCase does not compile under JDK1.4. That's because you've used a new JDK1.5 method 'boolean String.contains(CharSequence)'.
At line 68, method 'assertContains(String message, String expectedSubstring, String testString)':
if(!testString.contains(expectedSubstring)) {
^ method contains does not exist in JDK1.4 and previous version.
fail(message);
}
This problem may be corrected as the following:
//if(!testString.contains(expectedSubstring)) {
if (testString.indexOf(expectedSubstring) < 0) {
fail(message);
}
--
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