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 84230 Details for
Bug 44735
Unable to create platform lock file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
3.3.x patch
44735_org.eclipse.osgi_33x.txt (text/plain), 1.59 KB, created by
Thomas Watson
on 2007-11-30 15:05:39 EST
(
hide
)
Description:
3.3.x patch
Filename:
MIME Type:
Creator:
Thomas Watson
Created:
2007-11-30 15:05:39 EST
Size:
1.59 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.osgi >Index: supplement/src/org/eclipse/core/runtime/internal/adaptor/Locker_JavaNio.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.osgi/supplement/src/org/eclipse/core/runtime/internal/adaptor/Locker_JavaNio.java,v >retrieving revision 1.6 >diff -u -r1.6 Locker_JavaNio.java >--- supplement/src/org/eclipse/core/runtime/internal/adaptor/Locker_JavaNio.java 7 May 2007 20:57:32 -0000 1.6 >+++ supplement/src/org/eclipse/core/runtime/internal/adaptor/Locker_JavaNio.java 30 Nov 2007 20:04:35 -0000 >@@ -8,12 +8,12 @@ > * Contributors: > * IBM Corporation - initial API and implementation > * Danail Nachev (Prosyst) - bug 185654 >+ * Andrei Loskutov - bug 44735 > *******************************************************************************/ > package org.eclipse.core.runtime.internal.adaptor; > > import java.io.*; >-import java.nio.channels.FileLock; >-import java.nio.channels.OverlappingFileLockException; >+import java.nio.channels.*; > import org.eclipse.osgi.util.NLS; > > /** >@@ -31,7 +31,11 @@ > public synchronized boolean lock() throws IOException { > raFile = new RandomAccessFile(lockFile, "rw"); //$NON-NLS-1$ > try { >- fileLock = raFile.getChannel().tryLock(); >+ /* >+ * fix for bug http://bugs.sun.com/view_bug.do?bug_id=6628575 and >+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=44735#c17 >+ */ >+ fileLock = raFile.getChannel().tryLock(0, 1, false); > } catch (IOException ioe) { > // print exception if debugging > if (BasicLocation.DEBUG)
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 44735
:
6431
|
6453
|
83850
|
83851
|
83852
|
83862
|
83875
|
84020
|
84086
| 84230