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 83850 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]
Patch for org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio
patch_adaptor.txt (text/plain), 1.39 KB, created by
Andrey Loskutov
on 2007-11-27 05:00:32 EST
(
hide
)
Description:
Patch for org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio
Filename:
MIME Type:
Creator:
Andrey Loskutov
Created:
2007-11-27 05:00:32 EST
Size:
1.39 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 27 Nov 2007 09:34:16 -0000 >@@ -12,8 +12,7 @@ > 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 +30,12 @@ > 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 >+ */ >+ FileChannel fc = raFile.getChannel(); >+ fileLock = fc.tryLock(0, fc.size(), 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