### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: model/org/eclipse/jdt/core/IType.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IType.java,v retrieving revision 1.67 diff -u -r1.67 IType.java --- model/org/eclipse/jdt/core/IType.java 7 Mar 2009 00:59:02 -0000 1.67 +++ model/org/eclipse/jdt/core/IType.java 14 Oct 2009 05:53:53 -0000 @@ -472,6 +472,10 @@ * Returns the children of this type that have the given category as a @category tag. * Returns an empty array if no children with this category exist. * + *

+ * The results are listed in the order in which they appear in the source or class file. + *

+ * * @return the children for the given category. * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource. @@ -498,10 +502,8 @@ IField getField(String name); /** - * Returns the fields declared by this type. - * If this is a source type, the results are listed in the order - * in which they appear in the source, otherwise, the results are - * in no particular order. For binary types, this includes synthetic fields. + * Returns the fields declared by this type in the order in which they appear + * in the source or class file. For binary types, this includes synthetic fields. * * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource. @@ -580,10 +582,9 @@ IInitializer getInitializer(int occurrenceCount); /** - * Returns the initializers declared by this type. - * For binary types this is an empty collection. - * If this is a source type, the results are listed in the order - * in which they appear in the source. + * Returns the initializers declared by this type. For binary types this is an + * empty collection. For source types, the results are listed in the order in + * which they appear in the source. * * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource. @@ -623,11 +624,11 @@ /** * Returns the methods and constructors declared by this type. - * For binary types, this may include the special <clinit>; method + * For binary types, this may include the special <clinit> method * and synthetic methods. - * If this is a source type, the results are listed in the order - * in which they appear in the source, otherwise, the results are - * in no particular order. + *

+ * The results are listed in the order in which they appear in the source or class file. + *

* * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource. Index: model/org/eclipse/jdt/core/IMember.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IMember.java,v retrieving revision 1.27 diff -u -r1.27 IMember.java --- model/org/eclipse/jdt/core/IMember.java 27 Jun 2008 16:04:01 -0000 1.27 +++ model/org/eclipse/jdt/core/IMember.java 14 Oct 2009 05:53:52 -0000 @@ -14,6 +14,9 @@ * Common protocol for Java elements that can be members of types. * This set consists of IType, IMethod, * IField, and IInitializer. + *

+ * The children are listed in the order in which they appear in the source or class file. + *

* * @noimplement This interface is not intended to be implemented by clients. */