Community
Participate
Working Groups
Given: IJavaProject someJavaProject = <random but correct initialization>; String[] myArray = someJavaProject.getRequiredProjectNames(); myArray is currently returned in classpath order. The current behavior is the behavior I need in order for my plugin to function properly. However, the API contract does not specify that myArray will *always* be returned in classpath order, therefore I cannot currently depend on the current behavior staying the same. Since changing the API to reflect current behavior is not a breaking change, I would like to request that the API be updated to reflect that the array returned by getRequiredProjectNames() will always be in classpath order.
Indeed.
Changed specification to: /** * Returns the names of the projects that are directly required by this * project. A project is required if it is in its classpath. * <p> * The project names are returned in the order they appear on the classpath. * * @return the names of the projects that are directly required by this * project in classpath order * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource */
Thanks!
Verified.