> "Dibyendu Majumdar" wrote:

> LogCounter is an implementation of LogInstant.

Why doesn't LogCounter perform error checking (overflow/underflow) for
'fileNumber' and 'filePosition' in the constructors, next and prior methods?
Is this for performance reasons?

LogCounter, like several other 'formatable' classes does not read/write its
own StoredFormatId nor does it have an instance or static variable for it.
Could Mike explain this aspect of the architecture? Is this because the
StoredFormatId must be read in order to know what class to have read the
object and at the point the class reads the object the Id has already been
read?

Why were 'fileNumber' and 'filePosition' defined as longs when they are not
permitted to have values larger than ints?

Reply via email to