United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6593946 : (bf) X-Buffer.compact() does not discard mark as specified

Details
Type:
Bug
Submit Date:
2007-08-16
Status:
Closed
Updated Date:
2012-01-11
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
core-libs
OS:
linux,generic
Sub-Component:
java.nio
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6,7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
The specification of X-Buffer.compact() contains the following statement:

  The mark, if defined, is discarded.

However, the implementations of this method make no provisions for handling the mark.

                                    

Comments
EVALUATION

Set the mark to -1 to clear it.
                                     
2007-08-16



Hardware and Software, Engineered to Work Together