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 159734 Details for
Bug 302949
JavaModelManager hangs accessing the nonChainingJars set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed Patch
patch_302949.txt (text/plain), 2.04 KB, created by
Jay Arthanareeswaran
on 2010-02-21 22:49:24 EST
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Jay Arthanareeswaran
Created:
2010-02-21 22:49:24 EST
Size:
2.04 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/ClasspathEntry.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClasspathEntry.java,v >retrieving revision 1.123 >diff -u -r1.123 ClasspathEntry.java >--- model/org/eclipse/jdt/internal/core/ClasspathEntry.java 1 Feb 2010 11:13:25 -0000 1.123 >+++ model/org/eclipse/jdt/internal/core/ClasspathEntry.java 22 Feb 2010 03:37:43 -0000 >@@ -898,7 +898,7 @@ > } > } > >- private static List getCalledFileNames(IPath jarPath) { >+ static List getCalledFileNames(IPath jarPath) { > Object target = JavaModel.getTarget(jarPath, true/*check existence, otherwise the manifest cannot be read*/); > if (!(target instanceof IFile || target instanceof File)) > return null; >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.443 >diff -u -r1.443 JavaModelManager.java >--- model/org/eclipse/jdt/internal/core/JavaModelManager.java 15 Feb 2010 20:20:48 -0000 1.443 >+++ model/org/eclipse/jdt/internal/core/JavaModelManager.java 22 Feb 2010 03:37:46 -0000 >@@ -1525,7 +1525,9 @@ > public void addNonChainingJar(IPath path) { > if (this.nonChainingJars == null) > return; >- this.nonChainingJars.add(path); >+ synchronized (this.nonChainingJars) { >+ this.nonChainingJars.add(path); >+ } > } > > /** >@@ -2910,9 +2912,9 @@ > IClasspathEntry entry = classpath[j]; > IPath path; > if (entry.getEntryKind() == IClasspathEntry.CPE_LIBRARY >- && !result.contains(path = entry.getPath()) >- && ClasspathEntry.resolvedChainedLibraries(path).length == 0) { >- result.add(path); >+ && !result.contains(path = entry.getPath()) >+ && ClasspathEntry.getCalledFileNames(path) == null) { >+ result.add(path); > } > } > }
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 302949
:
159734
|
159948