Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318006 - libunix interface broken for readlink()
Summary: libunix interface broken for readlink()
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.6   Edit
Hardware: Other other
: P3 major (vote)
Target Milestone: 3.7 M1   Edit
Assignee: Pawel Pogorzelski CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 319388 (view as bug list)
Depends on:
Blocks: 319688 321220
  Show dependency tree
 
Reported: 2010-06-25 11:31 EDT by ben (Istvan Benedek) CLA
Modified: 2010-08-02 09:29 EDT (History)
2 users (show)

See Also:


Attachments
Patch_v01 (1.44 KB, patch)
2010-06-28 05:05 EDT, Pawel Pogorzelski CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***