JDK-6206786 : apt should return members in source order
  • Type: Enhancement
  • Component: tools
  • Sub-Component: apt
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-12-09
  • Updated: 2010-04-02
  • Resolved: 2004-12-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u3Fixed 6 b17Fixed
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
13-12-2004

EVALUATION A fine idea. ###@###.### 2004-12-09 23:30:38 GMT
09-12-2004