According to the documentation for TokenStream, derived classes are to
override either next() or next(Token).
Currently, if next(Token) is overridden, but next() is called, payload
is cloned if it exists in the new token.
However, if next(Token) is called, it is up to the implementation to
properly maintain payload. It seems to me that since next(Token) is
called with a new Token(), that this should not be necessary.
Also, if next() is overridden, but next(Token) is called, then payload
is never cloned, unless the overriding method handles it.
Can someone explain to me why this is correct?
-- DM
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]