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:
2017-05-16
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
core-libs
OS:
generic,linux
Sub-Component:
java.nio
CPU:
generic,x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6,7
Fixed Versions:

Related Reports

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