This is the mail archive of the frysk-bugzilla@sourceware.org mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug general/4272] New: ArrayType iterator limited to Java's primitive types


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]