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 231822 Details for
Bug 405320
Intermittent failure on JPA project creation when starting Eclipse
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Temp patch
405320.txt (text/plain), 1.69 KB, created by
Neil Hauge
on 2013-05-31 11:28:26 EDT
(
hide
)
Description:
Temp patch
Filename:
MIME Type:
Creator:
Neil Hauge
Created:
2013-05-31 11:28:26 EDT
Size:
1.69 KB
patch
obsolete
>diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java >index 5c9e327..89386aa 100644 >--- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java >+++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java >@@ -30,6 +30,7 @@ > import org.eclipse.core.runtime.IPath; > import org.eclipse.core.runtime.IProgressMonitor; > import org.eclipse.core.runtime.IStatus; >+import org.eclipse.core.runtime.Platform; > import org.eclipse.core.runtime.Status; > import org.eclipse.core.runtime.content.IContentType; > import org.eclipse.core.runtime.jobs.ISchedulingRule; >@@ -609,9 +610,17 @@ > } > > protected ProjectResourceLocator getProjectResourceLocator() { >- return (ProjectResourceLocator) this.project.getAdapter(ProjectResourceLocator.class); >+ Object resourceLocator = this.project.getAdapter(ProjectResourceLocator.class); >+ //Hack fix to ensure the adatper can be successfully loaded as there are currently problems in the platform >+ //in this area. See bugs 405320 and 408506. This fix is essentially a delay mechanism but appears to >+ //fully resolve the issue. This temp fix should be removed when bug 408506 is fixed in the platform. >+ if (resourceLocator == null) { >+ resourceLocator = Platform.getAdapterManager().loadAdapter(this.project, ProjectResourceLocator.class.getName()); >+ } >+ return (ProjectResourceLocator) resourceLocator; > } > >+ > /** > * Log any developer exceptions and don't build a JPA file rather > * than completely failing to build the JPA Project.
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 405320
:
229540
|
231821
| 231822