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 Zhong ZHENG <he...@gmail.com> on 2005/07/23 15:33:08 UTC

Compile error when building pluto source checked out from pluto/trunk

Hi, there

i checked out the latest pluto source code from the trunk, and when building 
it, i got a compile error in the class:

org.apache.pluto.portalImpl.core.PortalURL

Line 306, method 'public String toString(PortalControlParameter 
controlParam,Boolean p_secure)'.
control = control.replace("+", "%20");

The 'replace(String, String)' method does not exist in J2SE 1.4. So i guess 
that you are using J2SE 5.0.
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 J2SE 1.4, i fixed that line as following:

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

Regards.
ZHENG Zhong

Re: Compile error when building pluto source checked out from pluto/trunk

Posted by Craig Doremus <cr...@maine.com>.
Zhong,
Thank you. I committed this fix to SVN.
/Craig

Zhong ZHENG wrote:

>Hi, there
>
>i checked out the latest pluto source code from the trunk, and when building 
>it, i got a compile error in the class:
>
>org.apache.pluto.portalImpl.core.PortalURL
>
>Line 306, method 'public String toString(PortalControlParameter 
>controlParam,Boolean p_secure)'.
>control = control.replace("+", "%20");
>
>The 'replace(String, String)' method does not exist in J2SE 1.4. So i guess 
>that you are using J2SE 5.0.
>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 J2SE 1.4, i fixed that line as following:
>
>control = control.replaceAll("\\+", "%20");
>
>Regards.
>ZHENG Zhong
>
>  
>


Re: Compile error when building pluto source checked out from pluto/trunk

Posted by Zhong ZHENG <he...@gmail.com>.
Hi,

I've created a JIRA issue for that, and provided the fixed version.

http://issues.apache.org/jira/browse/PLUTO-138

Since the fixed version has already been committed to the repository, that 
issue should be closed, i think.

Regards.
ZHENG Zhong

On 7/23/05, David H. DeWolf <dd...@apache.org> wrote:
> 
> This is an important fix that we need to get in before rc4! Thanks.
> Did you create a Jira issue for it?
> 
> David
> 
> Zhong ZHENG wrote:
> > Hi, there
> >
> > i checked out the latest pluto source code from the trunk, and when
> > building it, i got a compile error in the class:
> >
> > org.apache.pluto.portalImpl.core.PortalURL
> >
> > Line 306, method 'public String toString(PortalControlParameter
> > controlParam,Boolean p_secure)'.
> > control = control.replace("+", "%20");
> >
> > The 'replace(String, String)' method does not exist in J2SE 1.4. So i
> > guess that you are using J2SE 5.0.
> > 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 J2SE 1.4, i fixed that line as following:
> >
> > control = control.replaceAll("\\+", "%20");
> >
> > Regards.
> > ZHENG Zhong
> > |
> >
> > |
> >
> 
> 


-- 

ZHENG Zhong
heavyzheng.AT.gmail.com <http://heavyzheng.AT.gmail.com>

Re: Compile error when building pluto source checked out from pluto/trunk

Posted by "David H. DeWolf" <dd...@apache.org>.
This is an important fix that we need to get in before rc4!  Thanks. 
Did you create a Jira issue for it?

David

Zhong ZHENG wrote:
> Hi, there
> 
> i checked out the latest pluto source code from the trunk, and when 
> building it, i got a compile error in the class:
> 
> org.apache.pluto.portalImpl.core.PortalURL
> 
> Line 306, method 'public String toString(PortalControlParameter 
> controlParam,Boolean p_secure)'.
> control = control.replace("+", "%20");
> 
> The 'replace(String, String)' method does not exist in J2SE 1.4. So i 
> guess that you are using J2SE 5.0.
> 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 J2SE 1.4, i fixed that line as following:
> 
> control = control.replaceAll("\\+", "%20");
> 
> Regards.
> ZHENG Zhong
> |
> 
> |
>