You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Paulex Yang (JIRA)" <ji...@apache.org> on 2006/06/08 10:21:30 UTC

[jira] Created: (HARMONY-578) [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement

[classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement
-----------------------------------------------------------------------------------

         Key: HARMONY-578
         URL: http://issues.apache.org/jira/browse/HARMONY-578
     Project: Harmony
        Type: Bug

  Components: Classlib  
    Reporter: Paulex Yang


JNI 1.4 add three new API related to nio buffers, 
        jobject NewDirectByteBuffer(JNIEnv* env, void* address, jlong capacity)
        void* GetDirectBufferAddress(JNIEnv* env, jobject buf)
        jlong GetDirectBufferCapacity(JNIEnv* env, jobject buf)

To simplify these JNI methods implementation, NIO module can provide the corresponding Java utilities and JNI wrapper code. I'll raise the patch soon.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HARMONY-578) [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-578?page=all ]

Paulex Yang updated HARMONY-578:
--------------------------------

    Attachment: JNI.ZIP

This patch includes several parts:
1. the nio utility class to provide support for JNI methods
2. the nio native codes to implement JNI methods 
3. the build file patch to build nio native codes

And the native codes' performance can be improved by caching the java class/method accessor return value, I'll implement this cache in the following steps.

You may want to follow the steps below to apply this patch:
1. unzip the zip archive to modules/nio
2. run 01.filecopy.sh
3. apply 02.nio.diff to nio modules
4. apply 03.native.diff to native-src
5. rebuild and check if hynio.dll/so is built successfully

Thank you.

> [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement
> -----------------------------------------------------------------------------------
>
>          Key: HARMONY-578
>          URL: http://issues.apache.org/jira/browse/HARMONY-578
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>  Attachments: JNI.ZIP
>
> JNI 1.4 add three new API related to nio buffers, 
>         jobject NewDirectByteBuffer(JNIEnv* env, void* address, jlong capacity)
>         void* GetDirectBufferAddress(JNIEnv* env, jobject buf)
>         jlong GetDirectBufferCapacity(JNIEnv* env, jobject buf)
> To simplify these JNI methods implementation, NIO module can provide the corresponding Java utilities and JNI wrapper code. I'll raise the patch soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (HARMONY-578) [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-578?page=all ]
     
Tim Ellison closed HARMONY-578:
-------------------------------


Verified by Paulex.


> [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement
> -----------------------------------------------------------------------------------
>
>          Key: HARMONY-578
>          URL: http://issues.apache.org/jira/browse/HARMONY-578
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Tim Ellison
>  Attachments: JNI.ZIP
>
> JNI 1.4 add three new API related to nio buffers, 
>         jobject NewDirectByteBuffer(JNIEnv* env, void* address, jlong capacity)
>         void* GetDirectBufferAddress(JNIEnv* env, jobject buf)
>         jlong GetDirectBufferCapacity(JNIEnv* env, jobject buf)
> To simplify these JNI methods implementation, NIO module can provide the corresponding Java utilities and JNI wrapper code. I'll raise the patch soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (HARMONY-578) [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-578?page=all ]

Tim Ellison reassigned HARMONY-578:
-----------------------------------

    Assign To: Tim Ellison

> [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement
> -----------------------------------------------------------------------------------
>
>          Key: HARMONY-578
>          URL: http://issues.apache.org/jira/browse/HARMONY-578
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Tim Ellison
>  Attachments: JNI.ZIP
>
> JNI 1.4 add three new API related to nio buffers, 
>         jobject NewDirectByteBuffer(JNIEnv* env, void* address, jlong capacity)
>         void* GetDirectBufferAddress(JNIEnv* env, jobject buf)
>         jlong GetDirectBufferCapacity(JNIEnv* env, jobject buf)
> To simplify these JNI methods implementation, NIO module can provide the corresponding Java utilities and JNI wrapper code. I'll raise the patch soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HARMONY-578) [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-578?page=comments#action_12417998 ] 

Tim Ellison commented on HARMONY-578:
-------------------------------------

Sorry Paulex, I inadvertently missed committing the change to native-src/build.xml.  That was done in r417397.



> [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement
> -----------------------------------------------------------------------------------
>
>          Key: HARMONY-578
>          URL: http://issues.apache.org/jira/browse/HARMONY-578
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Tim Ellison
>  Attachments: JNI.ZIP
>
> JNI 1.4 add three new API related to nio buffers, 
>         jobject NewDirectByteBuffer(JNIEnv* env, void* address, jlong capacity)
>         void* GetDirectBufferAddress(JNIEnv* env, jobject buf)
>         jlong GetDirectBufferCapacity(JNIEnv* env, jobject buf)
> To simplify these JNI methods implementation, NIO module can provide the corresponding Java utilities and JNI wrapper code. I'll raise the patch soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HARMONY-578) [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-578?page=comments#action_12418376 ] 

Paulex Yang commented on HARMONY-578:
-------------------------------------

looks good, thank you, Tim. 

> [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement
> -----------------------------------------------------------------------------------
>
>          Key: HARMONY-578
>          URL: http://issues.apache.org/jira/browse/HARMONY-578
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Tim Ellison
>  Attachments: JNI.ZIP
>
> JNI 1.4 add three new API related to nio buffers, 
>         jobject NewDirectByteBuffer(JNIEnv* env, void* address, jlong capacity)
>         void* GetDirectBufferAddress(JNIEnv* env, jobject buf)
>         jlong GetDirectBufferCapacity(JNIEnv* env, jobject buf)
> To simplify these JNI methods implementation, NIO module can provide the corresponding Java utilities and JNI wrapper code. I'll raise the patch soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (HARMONY-578) [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-578?page=all ]
     
Tim Ellison resolved HARMONY-578:
---------------------------------

    Resolution: Fixed

Thanks Paulex,

Patch applied to NIO module at repo revision r417385.

Please check that the patch was applied as you expected.


> [classlib][nio] NIO should provide some utility classes for the JNI 1.4 enhancement
> -----------------------------------------------------------------------------------
>
>          Key: HARMONY-578
>          URL: http://issues.apache.org/jira/browse/HARMONY-578
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Paulex Yang
>     Assignee: Tim Ellison
>  Attachments: JNI.ZIP
>
> JNI 1.4 add three new API related to nio buffers, 
>         jobject NewDirectByteBuffer(JNIEnv* env, void* address, jlong capacity)
>         void* GetDirectBufferAddress(JNIEnv* env, jobject buf)
>         jlong GetDirectBufferCapacity(JNIEnv* env, jobject buf)
> To simplify these JNI methods implementation, NIO module can provide the corresponding Java utilities and JNI wrapper code. I'll raise the patch soon.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira