Relates :
|
A DESCRIPTION OF THE REQUEST : Assume I have: ByteBuffer bb; For reading the first byte of this Buffer after filling I must code: ((ByteBuffer)bb.flip()).get(); JUSTIFICATION : To avoid the cast to ByteBuffer, class Buffer must be generified. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - This should be valid: bb.flip().get(); ACTUAL - Casting needed: ((ByteBuffer)bb.flip()).get(); CUSTOMER SUBMITTED WORKAROUND : Casting
|