This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/16647] New: IntBuffer routine failure
- From: "thomas at mycabin dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 20 Jul 2004 19:15:35 -0000
- Subject: [Bug libgcj/16647] New: IntBuffer routine failure
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I hope this hasn't been reported before. Bugzilla did not report anything
with the word asIntBuffer in it.
I am trying to do some buffer calls. A simple call to asIntBuffer() fails
with:
Exception in thread "main" java.lang.IllegalArgumentException
at java.nio.Buffer.limit(int) (/usr/lib/libgcj.so.4.0.0)
at gnu.java.nio.ByteBufferImpl.asIntBuffer() (/usr/lib/libgcj.so.4.0.0)
at example.main(java.lang.String[]) (Unknown Source)
Here is the sample routine that produced this error:
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
public class example {
public static void main(String args[]) {
ByteBuffer bb = ByteBuffer.allocate(4);
IntBuffer ib = bb.asIntBuffer();
}
}
here is the output of gcj -dumpversion:
3.3.1
I am running on a Mandrake Linux 9.2 system.
AMD Athlon 1.2 Ghz CPU
256 MB of crucial ram.
Any more information required please contact me.
Thanks for your attention to this.
Tom Green
--
Summary: IntBuffer routine failure
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: thomas at mycabin dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16647