Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1370 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1370 Summary: sort attribute not working in AbstractProgramElementTagsHandler.forAllMembers Type: Bug Status: Open Priority: Trivial Original Estimate: 10 minutes Time Spent: Unknown Remaining: 10 minutes Project: XDoclet Components: Core Versions: 1.2.3 Assignee: xdoclet-devel (Use for new issues) Reporter: Phritz Grau Created: Thu, 28 Apr 2005 5:09 AM Updated: Thu, 28 Apr 2005 5:09 AM Environment: win2k Description: template codes like <XDtField:forAllFields superclasses="false" sort="true"> dont work, i.e. the sort attribute has no effect. I looked up the implementation in AbstractProgramElementTagsHandler.forAllMembers you can find the code block: if (sort) { // sort fields, but we should make a copy first, because members is not a new copy, it's shared by all List sortedMembers = new ArrayList(members); members = sortedMembers; } But this should be: if (sort) { // sort fields, but we should make a copy first, because members is not a new copy, it's shared by all List sortedMembers = new ArrayList(members); Collections.sort(sortedMembers); members = sortedMembers; } The latter code work fine for me. Thanks. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel