View | Details | Raw Unified | Return to bug 338006 | Differences between
and this patch

Collapse All | Expand All

(-)model/org/eclipse/jdt/core/IJavaProject.java (-1 / +3 lines)
Lines 504-510 Link Here
504
	 * does not include package fragment roots in other projects referenced
504
	 * does not include package fragment roots in other projects referenced
505
	 * on this project's classpath.
505
	 * on this project's classpath.
506
	 *
506
	 *
507
	 * <p>NOTE: This is equivalent to <code>getChildren()</code>.
507
	 * <p>The package fragment roots appear in the order they are defined 
508
	 * by the classpath.
509
	 * </p>
508
	 *
510
	 *
509
	 * @return all of the  package fragment roots contained in this
511
	 * @return all of the  package fragment roots contained in this
510
	 * project, identified on this project's resolved classpath
512
	 * project, identified on this project's resolved classpath
(-)model/org/eclipse/jdt/internal/core/JavaProject.java (-13 / +4 lines)
Lines 1800-1818 Link Here
1800
	 */
1800
	 */
1801
	public IPackageFragmentRoot[] getPackageFragmentRoots()
1801
	public IPackageFragmentRoot[] getPackageFragmentRoots()
1802
		throws JavaModelException {
1802
		throws JavaModelException {
1803
1803
		// https://bugs.eclipse.org/bugs/show_bug.cgi?id=338006
1804
		Object[] children;
1804
		// This will ensure that the order is consistent with other methods such as 
1805
		int length;
1805
		// IJavaProject#getAllPackageFragmentRoots()
1806
		IPackageFragmentRoot[] roots;
1806
		return computePackageFragmentRoots(getResolvedClasspath(), false, null);
1807
1808
		System.arraycopy(
1809
			children = getChildren(),
1810
			0,
1811
			roots = new IPackageFragmentRoot[length = children.length],
1812
			0,
1813
			length);
1814
1815
		return roots;
1816
	}
1807
	}
1817
1808
1818
	/**
1809
	/**

Return to bug 338006