[PATCH] java.nio.channels

Michael Koch konqueror@gmx.de
Wed Nov 13 10:44:00 GMT 2002


Am Mittwoch, 13. November 2002 19:14 schrieb Tom Tromey:
> Michael> Hmm, I tried it here in a clean tree. All compiled fine.
> What Michael> errors do you get ?
>
> Sorry, I should have sent that the first time.
>
> make[1]: Entering directory
> `/home/tromey/gnu/trunk-gcc/build/i686-pc-linux-gnu/libjava'
> /home/tromey/gnu/trunk-gcc/build/gcc/gcj
> -B/home/tromey/gnu/trunk-gcc/build/i686-pc-linux-gnu/libjava/
> -B/home/tromey/gnu/trunk-gcc/build/gcc/ --encoding=UTF-8 -C -g
> -classpath '' -bootclasspath
> /home/tromey/gnu/trunk-gcc/build/i686-pc-linux-gnu/libjava:../../..
>/gcc/libjava \ -d
> /home/tromey/gnu/trunk-gcc/build/i686-pc-linux-gnu/libjava
> ../../../gcc/libjava/gnu/java/nio/charset/ISO_8859_1.java
> ./../../gcc/libjava/gnu/java/nio/charset/ISO_8859_1.java: In class
> `gnu.java.nio.charset.ISO_8859_1$Encoder':
> ./../../gcc/libjava/gnu/java/nio/charset/ISO_8859_1.java: In method
> `gnu.java.nio.charset.ISO_8859_1$Encoder.encodeLoop(java.nio.CharBu
>ffer,java.nio.ByteBuffer)':
> ./../../gcc/libjava/gnu/java/nio/charset/ISO_8859_1.java:126:
> error: Can't find method `put(B)' in type `java.nio.ByteBuffer'.
> out.put ((byte) c);
>               ^
> ./../../gcc/libjava/gnu/java/nio/charset/ISO_8859_1.java: In class
> `gnu.java.nio.charset.ISO_8859_1$Decoder':
> ./../../gcc/libjava/gnu/java/nio/charset/ISO_8859_1.java: In method
> `gnu.java.nio.charset.ISO_8859_1$Decoder.decodeLoop(java.nio.ByteBu
>ffer,java.nio.CharBuffer)':
> ./../../gcc/libjava/gnu/java/nio/charset/ISO_8859_1.java:86: error:
> Can't find method `get()' in type `java.nio.ByteBuffer'. byte b =
> in.get ();
>                       ^
> 2 errors
>
>
> Sure enough, ByteBuffer has nothing in it.
> Copying it over yields errors about other *Buffer classes.
> I didn't want to pursue it any further...

Thanks, I commited the attached fast fix.

Michael
-- 
Homepage: http://www.worldforge.org/
GPG-key: http://konqueror.dyndns.org/~mkoch/michael.gpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: java-nio-ByteBuffer.patch
Type: text/x-diff
Size: 1842 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20021113/71efddfb/attachment.bin>


More information about the Java-patches mailing list