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 79284 Details for
Bug 204652
"Open Type": ClassCastException in conjunction with a class folder
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix for 3.3 maintenance
204652_331.txt (text/plain), 1.46 KB, created by
Jerome Lanneluc
on 2007-09-27 10:05:42 EDT
(
hide
)
Description:
Proposed fix for 3.3 maintenance
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2007-09-27 10:05:42 EDT
Size:
1.46 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: search/org/eclipse/jdt/internal/core/search/JavaSearchScope.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/JavaSearchScope.java,v >retrieving revision 1.57 >diff -u -r1.57 JavaSearchScope.java >--- search/org/eclipse/jdt/internal/core/search/JavaSearchScope.java 13 Apr 2007 16:02:15 -0000 1.57 >+++ search/org/eclipse/jdt/internal/core/search/JavaSearchScope.java 27 Sep 2007 14:00:45 -0000 >@@ -580,9 +580,6 @@ > String projectPath = idx == -1 ? null : (String) this.projectPaths.get(idx); > if (projectPath != null) { > IJavaProject project =JavaCore.create(ResourcesPlugin.getWorkspace().getRoot().getProject(projectPath)); >- if (isJarFile) { >- return project.getPackageFragmentRoot(this.containerPaths[index]); >- } > Object target = JavaModel.getTarget(ResourcesPlugin.getWorkspace().getRoot(), new Path(this.containerPaths[index]+'/'+this.relativePaths[index]), false); > if (target instanceof IProject) { > return project.getPackageFragmentRoot((IProject) target); >@@ -591,6 +588,9 @@ > IJavaElement element = JavaCore.create((IResource)target); > return (IPackageFragmentRoot) element.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT); > } >+ if (isJarFile) { >+ return project.getPackageFragmentRoot(this.containerPaths[index]); >+ } > } > } > return 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 204652
:
79189
|
79211
|
79221
| 79284 |
79376