I'll post a ChangeLog, but this is really more an RFC than an RFA
(request for comment/request for approval). But who knows, even a blind
man occasionally hits the target! ;-)
ChangeLog
2005-08-04 Keith Seitz <address@hidden>
* gnu/classpath/jdwp/vm/IdManager.java: New file describing
the interface used by the JDWP back-end for object and type
ID management.
/**
* Reads a numerical ID from the stream, returning
* the actual ID associated with it.
*
* IDs are assumed to be eight bytes.
*
* @param bb the buffer from which to read the ID
* @returns the object id
* @throws IOException for any errors reading from the stream
* @throws InvaildObjectException if ID is not found
*/
public ObjectId readId (ByteBuffer bb)
throws IOException, InvalidObjectException
{
long id = bb.getLong ();
return get (id);
}
/**
* Reads a numerical ID from the stream, returning
* the actual reference type ID associated with it.
*
* IDs are assumed to be eight bytes.
*
* @param bb the buffer from which to read the ID
* @returns the JdwpId
* @throws IOException for any errors reading from the stream
* @throws InvaildObjectException if ID is not found
*/
public ReferenceTypeId readReferenceTypeId (ByteBuffer bb)
throws IOException, InvalidClassException
{
long id = bb.getLong ();
return getReferenceType (id);
}
}