Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 189914 Details for
Bug 338006
IJavaProject#getPackageFragmentRoots() should return roots in order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
bug_338006.txt (text/plain), 2.02 KB, created by
Jay Arthanareeswaran
on 2011-02-28 03:36:09 EST
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Jay Arthanareeswaran
Created:
2011-02-28 03:36:09 EST
Size:
2.02 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/core/IJavaProject.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IJavaProject.java,v >retrieving revision 1.105 >diff -u -r1.105 IJavaProject.java >--- model/org/eclipse/jdt/core/IJavaProject.java 4 Dec 2010 02:42:13 -0000 1.105 >+++ model/org/eclipse/jdt/core/IJavaProject.java 28 Feb 2011 07:34:19 -0000 >@@ -504,7 +504,9 @@ > * does not include package fragment roots in other projects referenced > * on this project's classpath. > * >- * <p>NOTE: This is equivalent to <code>getChildren()</code>. >+ * <p>The package fragment roots appear in the order they are defined >+ * by the classpath. >+ * </p> > * > * @return all of the package fragment roots contained in this > * project, identified on this project's resolved classpath >Index: model/org/eclipse/jdt/internal/core/JavaProject.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaProject.java,v >retrieving revision 1.443 >diff -u -r1.443 JavaProject.java >--- model/org/eclipse/jdt/internal/core/JavaProject.java 18 Feb 2011 10:03:13 -0000 1.443 >+++ model/org/eclipse/jdt/internal/core/JavaProject.java 28 Feb 2011 07:34:20 -0000 >@@ -1800,19 +1800,10 @@ > */ > public IPackageFragmentRoot[] getPackageFragmentRoots() > throws JavaModelException { >- >- Object[] children; >- int length; >- IPackageFragmentRoot[] roots; >- >- System.arraycopy( >- children = getChildren(), >- 0, >- roots = new IPackageFragmentRoot[length = children.length], >- 0, >- length); >- >- return roots; >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=338006 >+ // This will ensure that the order is consistent with other methods such as >+ // IJavaProject#getAllPackageFragmentRoots() >+ return computePackageFragmentRoots(getResolvedClasspath(), false, null); > } > > /**
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 338006
:
189914
|
190241
|
190348
|
190364
|
190377