From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5711 invoked by alias); 20 Jul 2004 19:15:41 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 5651 invoked by uid 48); 20 Jul 2004 19:15:35 -0000 Date: Tue, 20 Jul 2004 19:15:00 -0000 From: "thomas at mycabin dot org" To: java-prs@gcc.gnu.org Message-ID: <20040720191532.16647.thomas@mycabin.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libgcj/16647] New: IntBuffer routine failure X-Bugzilla-Reason: CC X-SW-Source: 2004-q3/txt/msg00069.txt.bz2 List-Id: 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