You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2006/04/12 17:32:04 UTC

DO NOT REPLY [Bug 39284] New: - fn:endsWith('abcda', 'a') returns false

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39284>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39284

           Summary: fn:endsWith('abcda', 'a') returns false
           Product: Taglibs
           Version: nightly
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: PatchAvailable
          Severity: major
          Priority: P2
         Component: Standard Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: jochen.metzinger@proximity.de


If the suffix occurs more than once fn:endsWith returns false

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39284] - fn:endsWith('abcda', 'a') returns false

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39284>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39284





------- Additional Comments From jochen.metzinger@proximity.de  2006-04-12 16:32 -------
Created an attachment (id=18084)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18084&action=view)
Use String#endsWith


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39284] - fn:endsWith('abcda', 'a') returns false

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39284>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39284





------- Additional Comments From bjorn@sourcelabs.com  2006-11-22 16:07 -------
Created an attachment (id=19163)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19163&action=view)
Unit test for endsWith bug.

It appears that this bug was also tracked in bugzilla-32896 and fixed in svn
r218357.  Here's a patch for the taglibs unit tests that checks this fix. 

It looks to me that Jochen's suggestion is a simpler fix for this issue, so one
might consider applying his fix.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39284] - fn:endsWith('abcda', 'a') returns false

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39284>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39284


bayard@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From bayard@apache.org  2006-11-29 10:33 -------
Applied both attachments:

svn ci -m "Applying the unit test from #39284 from Bjorn Townsend" test/
build-tests.xml 
Sending        build-tests.xml
Adding         test/org/apache/taglibs/standard/functions
Adding         test/org/apache/taglibs/standard/functions/TestEndsWith.java
Adding         test/web/org/apache/taglibs/standard/functions
Adding         test/web/org/apache/taglibs/standard/functions/TestEndsWith.jsp
Transmitting file data ...
Committed revision 480669.

svn ci -m "Applying the fix from Jochen Metzinger in #39284 - the existing code
was already fixed, but this seems like a worthwhile simplification"
src/org/apache/taglibs/standard/functions/Functions.java 
Sending        src/org/apache/taglibs/standard/functions/Functions.java
Transmitting file data .
Committed revision 480670.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org