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 177828 Details for
Bug 321170
Adding to build path fails for a java source file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
bug_321170.txt (text/plain), 1.84 KB, created by
Jay Arthanareeswaran
on 2010-08-31 08:35:07 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Jay Arthanareeswaran
Created:
2010-08-31 08:35:07 EDT
Size:
1.84 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/JavaModelManager.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModelManager.java,v >retrieving revision 1.454 >diff -u -r1.454 JavaModelManager.java >--- model/org/eclipse/jdt/internal/core/JavaModelManager.java 21 Jul 2010 14:13:46 -0000 1.454 >+++ model/org/eclipse/jdt/internal/core/JavaModelManager.java 31 Aug 2010 12:30:33 -0000 >@@ -997,9 +997,8 @@ > JavaProjectElementInfo projectInfo = (JavaProjectElementInfo) getJavaModelManager().getInfo(project); > ProjectCache projectCache = projectInfo == null ? null : projectInfo.projectCache; > HashtableOfArrayToObject allPkgFragmentsCache = projectCache == null ? null : projectCache.allPkgFragmentsCache; >- IClasspathEntry[] entries = >- org.eclipse.jdt.internal.core.util.Util.isJavaLikeFileName(resourcePath.lastSegment()) >- ? project.getRawClasspath() // JAVA file can only live inside SRC folder (on the raw path) >+ boolean isJavaLike = org.eclipse.jdt.internal.core.util.Util.isJavaLikeFileName(resourcePath.lastSegment()); >+ IClasspathEntry[] entries = isJavaLike ? project.getRawClasspath() // JAVA file can only live inside SRC folder (on the raw path) > : ((JavaProject)project).getResolvedClasspath(); > > int length = entries.length; >@@ -1011,6 +1010,8 @@ > if (entry.getEntryKind() == IClasspathEntry.CPE_PROJECT) continue; > IPath rootPath = entry.getPath(); > if (rootPath.equals(resourcePath)) { >+ if (isJavaLike) >+ return null; > return project.getPackageFragmentRoot(resource); > } else if (rootPath.isPrefixOf(resourcePath)) { > // allow creation of package fragment if it contains a .java file that is included
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 321170
:
177828
|
178015