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 139354 Details for
Bug 280497
Incorrect null result for IJavaProject.getClasspathEntryFor(IPath)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch possibility
bug_280497.txt (text/plain), 1.06 KB, created by
Paul Fullbright
on 2009-06-16 15:45:17 EDT
(
hide
)
Description:
patch possibility
Filename:
MIME Type:
Creator:
Paul Fullbright
Created:
2009-06-16 15:45:17 EDT
Size:
1.06 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >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.424 >diff -u -r1.424 JavaProject.java >--- model/org/eclipse/jdt/internal/core/JavaProject.java 23 Apr 2009 15:32:16 -0000 1.424 >+++ model/org/eclipse/jdt/internal/core/JavaProject.java 16 Jun 2009 19:46:06 -0000 >@@ -1365,7 +1365,12 @@ > Map rootPathToResolvedEntries = perProjectInfo.rootPathToResolvedEntries; > if (rootPathToResolvedEntries == null) > return null; >- return (IClasspathEntry) rootPathToResolvedEntries.get(path); >+ IClasspathEntry classpathEntry = (IClasspathEntry) rootPathToResolvedEntries.get(path); >+ if (classpathEntry == null) { >+ path = getProject().getWorkspace().getRoot().getLocation().append(path); >+ classpathEntry = (IClasspathEntry) rootPathToResolvedEntries.get(path); >+ } >+ return classpathEntry; > } > > /*
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 280497
:
139351
|
139352
|
139354
|
140930