This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: PATCH to optimize two Channels methods
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Michael Koch <konqueror at gmx dot de>
- Cc: Richard Earnshaw <rearnsha at arm dot com>, Per Bothner <per at bothner dot com>, java-patches at gcc dot gnu dot org
- Date: Tue, 09 Mar 2004 11:59:25 +0000
- Subject: Re: PATCH to optimize two Channels methods
- Organization: ARM Ltd.
- Reply-to: Richard Earnshaw <rearnsha at arm dot com>
konqueror@gmx.de said:
> Another iteration of the patch as I forgot the include files.
nope, still not there yet, I guess there's yet another header file missing
:-(
gnu/java/nio/channels/natFileChannelImpl.cc:57: error: `FileChannel' has
not been declared
gnu/java/nio/channels/natFileChannelImpl.cc: In function `void init()':
gnu/java/nio/channels/natFileChannelImpl.cc:59: error: `in' was not
declared in this scope
gnu/java/nio/channels/natFileChannelImpl.cc:60: error: `out' was not
declared in this scope
gnu/java/nio/channels/natFileChannelImpl.cc:61: error: `err' was not
declared in this scope
gnu/java/nio/channels/natFileChannelImpl.cc:59: warning: unused variable
'in'
gnu/java/nio/channels/natFileChannelImpl.cc:60: warning: unused variable
'out'
gnu/java/nio/channels/natFileChannelImpl.cc:61: warning: unused variable
'err'
gnu/java/nio/channels/natFileChannelImpl.cc: In member function `virtual
void gnu::java::nio::channels::FileChannelImpl::write(JArray<jbyte>*,
jint, jint)':
gnu/java/nio/channels/natFileChannelImpl.cc:100: error: `gnu::java::lang'
has not been declared
gnu/java/nio/channels/natFileChannelImpl.cc:100: error:
`NullPointerException' has not been declared
gnu/java/nio/channels/natFileChannelImpl.cc:102: error: `gnu::java::lang'
has not been declared
gnu/java/nio/channels/natFileChannelImpl.cc: At global scope:
gnu/java/nio/channels/natFileChannelImpl.cc:109: error: no `void
gnu::java::nio::channels::FileChannelImpl::close()' member function
declared in class `gnu::java::nio::channels::FileChannelImpl'
gnu/java/nio/channels/natFileChannelImpl.cc:114: error: Java method 'void
gnu::java::nio::channels::FileChannelImpl::setLength(long int)' has
non-Java parameter type `long int'
gnu/java/nio/channels/natFileChannelImpl.cc:119: error: prototype for
`jint gnu::java::nio::channels::FileChannelImpl::seek(jlong, jint,
jboolean)' does not match any in class `gnu::java::nio::channels::FileChann
elImpl'
./gnu/java/nio/channels/FileChannelImpl.h:58: error: candidate is: void
gnu::java::nio::channels::FileChannelImpl::seek(jlong)
gnu/java/nio/channels/natFileChannelImpl.cc:126: error: no `jlong
gnu::java::nio::channels::FileChannelImpl::getLength()' member function
declared in class `gnu::java::nio::channels::FileChannelImpl'
gnu/java/nio/channels/natFileChannelImpl.cc:132: error: no `jlong
gnu::java::nio::channels::FileChannelImpl::getFilePointer()' member
function declared in class `gnu::java::nio::channels::FileChannelImpl'
gnu/java/nio/channels/natFileChannelImpl.cc:156: error: prototype for
`void gnu::java::nio::channels::FileChannelImpl::lock(jlong, jint,
jboolean)' does not match any in class `gnu::java::nio::channels::FileChann
elImpl'
./gnu/java/nio/channels/FileChannelImpl.h:91: error: candidates are:
virtual java::nio::channels::FileLock* gnu::java::nio::channels::FileChanne
lImpl::lock(jlong, jlong, jboolean)
./gnu/java/nio/channels/FileChannelImpl.h:89: error:
jboolean gnu::java::nio::channels::FileChannelImpl::lock(jlong, jlong,
jboolean, jboolean)
gnu/java/nio/channels/natFileChannelImpl.cc:163: error: prototype for
`jboolean gnu::java::nio::channels::FileChannelImpl::tryLock(jlong, jint,
jboolean)' does not match any in class `gnu::java::nio::channels::FileChann
elImpl'
./gnu/java/nio/channels/FileChannelImpl.h:87: error: candidate is: virtual
java::nio::channels::FileLock* gnu::java::nio::channels::FileChannelImpl::t
ryLock(jlong, jlong, jboolean)
gnu/java/nio/channels/natFileChannelImpl.cc:170: error: prototype for
`void gnu::java::nio::channels::FileChannelImpl::unlock(jlong, jint)' does
not match any in class `gnu::java::nio::channels::FileChannelImpl'
./gnu/java/nio/channels/FileChannelImpl.h:61: error: candidate is: virtual
void gnu::java::nio::channels::FileChannelImpl::unlock(jlong, jlong)
gnu/java/nio/channels/natFileChannelImpl.cc: In member function `jint
gnu::java::nio::channels::FileChannelImpl::open(java::lang::String*,
jint)':
gnu/java/nio/channels/natFileChannelImpl.cc:85: warning: unused parameter
'path'
gnu/java/nio/channels/natFileChannelImpl.cc:85: warning: unused parameter
'jflags'
gnu/java/nio/channels/natFileChannelImpl.cc: In member function `jint
gnu::java::nio::channels::FileChannelImpl::seek(jlong, jint, jboolean)':
gnu/java/nio/channels/natFileChannelImpl.cc:119: warning: unused parameter
'pos'
gnu/java/nio/channels/natFileChannelImpl.cc:119: warning: unused parameter
'whence'
gnu/java/nio/channels/natFileChannelImpl.cc: In member function `virtual
jint gnu::java::nio::channels::FileChannelImpl::read(JArray<jbyte>*, jint,
jint)':
gnu/java/nio/channels/natFileChannelImpl.cc:144: warning: unused parameter
'buffer'
gnu/java/nio/channels/natFileChannelImpl.cc:144: warning: unused parameter
'offset'
gnu/java/nio/channels/natFileChannelImpl.cc:144: warning: unused parameter
'count'
gnu/java/nio/channels/natFileChannelImpl.cc: In member function `void
gnu::java::nio::channels::FileChannelImpl::lock(jlong, jint, jboolean)':
gnu/java/nio/channels/natFileChannelImpl.cc:156: warning: unused parameter
'pos'
gnu/java/nio/channels/natFileChannelImpl.cc:156: warning: unused parameter
'len'
gnu/java/nio/channels/natFileChannelImpl.cc:156: warning: unused parameter
'shared'
gnu/java/nio/channels/natFileChannelImpl.cc: In member function `jboolean
gnu::java::nio::channels::FileChannelImpl::tryLock(jlong, jint, jboolean)':
gnu/java/nio/channels/natFileChannelImpl.cc:163: warning: unused parameter
'pos'
gnu/java/nio/channels/natFileChannelImpl.cc:163: warning: unused parameter
'len'
gnu/java/nio/channels/natFileChannelImpl.cc:163: warning: unused parameter
'shared'
gnu/java/nio/channels/natFileChannelImpl.cc: In member function `void
gnu::java::nio::channels::FileChannelImpl::unlock(jlong, jint)':
gnu/java/nio/channels/natFileChannelImpl.cc:170: warning: unused parameter
'pos'
gnu/java/nio/channels/natFileChannelImpl.cc:170: warning: unused parameter
'len'