This is the mail archive of the
frysk-bugzilla@sourceware.org
mailing list for the frysk project.
[Bug general/4272] New: ArrayType iterator limited to Java's primitive types
- From: "cagney at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: frysk-bugzilla at sourceware dot org
- Date: 23 Mar 2007 21:03:02 -0000
- Subject: [Bug general/4272] New: ArrayType iterator limited to Java's primitive types
- Reply-to: sourceware-bugzilla at sourceware dot org
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.