portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sean Taylor" <da...@bluesunrise.com>
Subject RE: Question in VelocityPortletControl
Date Fri, 29 Mar 2002 23:36:20 GMT
Looks like you found a(nother) bug.

>         if ( portlet.getName().equals(jdata.getCustomized())

will find the common matching 'equals' methods on both objects.
In this its found in the common base class to both the String and the
Portlet classes: 'Object.equals'

So the code will short circuit the if everytime since this can never be
true.

Perhaps the intention here was:

         if ( portlet.getName().equals(jdata.getCustomized().getName())





--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message