bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22905] New: gnu.java.nio.channels.FileChannelImp map, loc


From: pinskia at gcc dot gnu dot org
Subject: [Bug classpath/22905] New: gnu.java.nio.channels.FileChannelImp map, lock, unlock methods not implemented
Date: 8 Aug 2005 20:44:08 -0000

in the file gnujava
iochannelsFileChannelImpl.java there are 3 native methods:



public native MappedByteBuffer mapImpl(char mode, long position, int size)

private native boolean lock(long position, long size, boolean shared, boolean 
wait)

public native void unlock(long pos, long len)



which are supposed to be implemented in the 
nativejnijava-niognu_java_nio_channels_FileChannelImpl.c, but they are not, 
"not implemented exception" is thrown instead.



Also http://www.kaffe.org/~stuart/japi/htmlout/h-jdk14-classpath.html says that 
java.nio is 100% implemented but these methods are missing.










------- Additional Comments From from-classpath at savannah dot gnu dot org  
2005-05-25 06:53 -------
Trygve Laugstol has a patch for this. We are currently doing the copyright 
assignment work. Then his stuff can go in.
------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-08 
20:44 -------
Fixed by:
2003-07-23  Casey Marshall  <address@hidden>

        * configure.ac (AC_CHECK_HEADERS): add 'sys/mman.h'.
        (AC_CHECK_FUNCS): add mmap and related functions.
        * include/java_nio_VMDirectByteBuffer.h: regenerated.
        * java/nio/DirectByteBufferImpl.java (put): new method.
        * native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c
        (ALIGN_DOWN): new macro.
        (ALIGN_UP): new macro.
        (Java_gnu_java_nio_channels_FileChannelImpl_mapImpl): implemented.
        * native/jni/java-nio/java_nio_MappedByteBufferImpl.c: updated
        copyright years.
        (ALIGN_DOWN): new macro.
        (ALIGN_UP): new macro.
        (get_pagesize): new function.
        (get_raw_values): new function.
        (Java_java_nio_MappedByteBufferImpl_unmapImpl): implemented.
        (Java_java_nio_MappedByteBufferImpl_isLoadedImpl): implemented.
        (Java_java_nio_MappedByteBufferImpl_loadImpl): implemented.
        (Java_java_nio_MappedByteBufferImpl_forceImpl): implemented.
        * native/jni/java-nio/java_nio_VMDirectByteBuffer.c
        (Java_java_nio_VMDirectByteBuffer_put): renamed to
        'Java_java_nio_VMDirectByteBuffer_put__Lgnu_classpath_RawData_2IB.'
        (Java_java_nio_VMDirectByteBuffer_get__Lgnu_classpath_RawData_2I_3BII):
        call 'ReleaseByteArrayElements' on the source byte array elements.
        (Java_java_nio_VMDirectByteBuffer_put__Lgnu_classpath_RawData_2I_3BII):
        new method.
        * vm/reference/java/nio/VMDirectByteBuffer.java (put): new method.

-- 
           Summary: gnu.java.nio.channels.FileChannelImp map,lock, unlock
                    methods not implemented
           Product: classpath
           Version: unspecified
            Status: RESOLVED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: from-classpath at savannah dot gnu dot org
                CC: bug-classpath at gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22905




reply via email to

[Prev in Thread] Current Thread [Next in Thread]