Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318006

Summary: libunix interface broken for readlink()
Product: [Eclipse Project] Platform Reporter: ben (Istvan Benedek) <istvan>
Component: ResourcesAssignee: Pawel Pogorzelski <pawel.pogorzelski1>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: alfred.nathaniel, Szymon.Brandys
Version: 3.6   
Target Milestone: 3.7 M1   
Hardware: Other   
OS: other   
Whiteboard:
Bug Depends on:    
Bug Blocks: 319688, 321220    
Attachments:
Description Flags
Patch_v01 none

Description ben (Istvan Benedek) CLA 2010-06-25 11:31:29 EDT
Build Identifier: I20100608-0911

The JNI interface of the readlink() method in the org.eclipse.core.internal.filesystem.local.Converter.readlink
is broken: the return type of the method is declared long, but the JNI method returns a jint.

Proposed fix (fixed and tested on Solaris10): change the JNI signature to jlong.


Reproducible: Always

Steps to Reproduce:
1. create a new workspace
2. create some project in it
3. link at the file system level (not within eclipse!) some content in your workspace directory
4. refresh the project
Comment 1 Szymon Brandys CLA 2010-06-25 17:16:41 EDT
Pawel, please take care of it.
Comment 2 Pawel Pogorzelski CLA 2010-06-28 05:05:22 EDT
Created attachment 172871 [details]
Patch_v01

The JNI signature is the proper one. I've changed the Java native method's signature to int.
Comment 3 Pawel Pogorzelski CLA 2010-06-28 05:10:10 EDT
Patch_v01 in HEAD. Marking as FIXED.
Comment 4 Pawel Pogorzelski CLA 2010-07-13 07:45:06 EDT
*** Bug 319388 has been marked as a duplicate of this bug. ***