From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1833 invoked by alias); 23 Mar 2007 21:03:17 -0000 Received: (qmail 1719 invoked by uid 48); 23 Mar 2007 21:03:02 -0000 Date: Fri, 23 Mar 2007 21:03:00 -0000 From: "cagney at redhat dot com" To: frysk-bugzilla@sourceware.org Message-ID: <20070323210302.4272.cagney@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug general/4272] New: ArrayType iterator limited to Java's primitive types X-Bugzilla-Reason: AssignedTo Mailing-List: contact frysk-bugzilla-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: frysk-bugzilla-owner@sourceware.org X-SW-Source: 2007-q1/txt/msg00821.txt.bz2 List-Id: The ArrayType contains the code: public Object next () { if (type.typeId == BaseTypes.baseTypeChar) return new Character((char)v.getByte(idx * type.getSize())); else if (type.typeId == BaseTypes.baseTypeShort) return new Integer(v.getShort(idx * type.getSize())); else if (type.typeId == BaseTypes.baseTypeInteger) this doesn't work - as the "type" could be a pointer, or some other more abstract type. Instead the iteratore should use "ByteBuffer.slice" to slice the underlying array of bytes and then create a Variable from that. -- Summary: ArrayType iterator limited to Java's primitive types Product: frysk Version: unspecified Status: NEW Severity: normal Priority: P2 Component: general AssignedTo: frysk-bugzilla at sourceware dot org ReportedBy: cagney at redhat dot com OtherBugsDependingO 3393 nThis: http://sourceware.org/bugzilla/show_bug.cgi?id=4272 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.