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/23 17:55:45 UTC

[jira] Created: (PLUTO-138) Pluto does not compile under J2SE 1.4

Pluto does not compile under J2SE 1.4
-------------------------------------

         Key: PLUTO-138
         URL: http://issues.apache.org/jira/browse/PLUTO-138
     Project: Pluto
        Type: Improvement
  Components: portlet container  
    Versions: 1.0.1-rc4    
 Environment: J2SE 1.4.1_05-b01
    Reporter: ZHENG Zhong


Class 'org.apache.pluto.portalImpl.core.PortalURL' does not compile under J2SE 1.4.x or previous JDK versions.

Inside method 'String toString(PortalControlParameter controlParam,Boolean p_secure)', at line 306:

control = control.replace("+", "%20");

The 'replace(String, String)' method does not exist in J2SE 1.4 or previous version. But in J2SE 5.0, String has a method 'replace(CharSequence, CharSequence)', and the String class implements the CharSequence interface.

In order to be compatible with previous Java versions, that line should be fixed as the following:

control = control.replaceAll("\\+", "%20");

Regards.
ZHENG Zhong

-- 
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] Resolved: (PLUTO-138) Pluto does not compile under J2SE 1.4

Posted by "David DeWolf (JIRA)" <pl...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/PLUTO-138?page=all ]
     
David DeWolf resolved PLUTO-138:
--------------------------------

    Fix Version: 1.0.1-rc4
     Resolution: Fixed

Thank you! good catch.

> Pluto does not compile under J2SE 1.4
> -------------------------------------
>
>          Key: PLUTO-138
>          URL: http://issues.apache.org/jira/browse/PLUTO-138
>      Project: Pluto
>         Type: Improvement
>   Components: portlet container
>     Versions: 1.0.1-rc4
>  Environment: J2SE 1.4.1_05-b01
>     Reporter: ZHENG Zhong
>      Fix For: 1.0.1-rc4

>
> Class 'org.apache.pluto.portalImpl.core.PortalURL' does not compile under J2SE 1.4.x or previous JDK versions.
> Inside method 'String toString(PortalControlParameter controlParam,Boolean p_secure)', at line 306:
> control = control.replace("+", "%20");
> The 'replace(String, String)' method does not exist in J2SE 1.4 or previous version. But in J2SE 5.0, String has a method 'replace(CharSequence, CharSequence)', and the String class implements the CharSequence interface.
> In order to be compatible with previous Java versions, that line should be fixed as the following:
> control = control.replaceAll("\\+", "%20");
> Regards.
> ZHENG Zhong

-- 
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