United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6206786 apt should return members in source order
6206786 : apt should return members in source order

Details
Type:
Enhancement
Submit Date:
2004-12-09
Status:
Closed
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2004-12-18
Component:
tools
OS:
generic
Sub-Component:
apt
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
6

Related Reports
Backport:

Sub Tasks

Description
The subinterfaces of Declaration have various methods which return the contained members of a class or other member, e.g. a method to return the fields or elements.  In the initial apt implementation, these members are returned in opposite-source order, which is inconvenient.
###@###.### 2004-12-09 23:30:37 GMT

                                    

Comments
SUGGESTED FIX

src/share/classes/com/sun/tools/apt/mirror/declaration>sccs sccsdiff -r1.7 -r1.8 DeclarationImpl.java

------- DeclarationImpl.java -------
12a13
> import java.util.LinkedList;
202c203
<       Collection<Symbol> res = new ArrayList<Symbol>();
---
>       LinkedList<Symbol> res = new LinkedList<Symbol>();
205c206
<               res.add(e.sym);
---
>               res.addFirst(e.sym);

###@###.### 2004-12-13 20:12:00 GMT
                                     
2004-12-13
EVALUATION

A fine idea.

###@###.### 2004-12-09 23:30:38 GMT
                                     
2004-12-09



Hardware and Software, Engineered to Work Together