On 6/10/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
Additionally, the following features might make ByteBuffer more useful:
* Provide getEnum and putEnum too. (just reading and writing the
ordinal value itself)
* Throw an IllegalArgumentException if there are too many enum
members. For example, when a user calls putEnumSet with an enum class
which has 10 (>8) members, we need to throw an exception to tell the
user that a wrong value can be written.
I made these changes and committed them to trunk.