JDK-6593946 : (bf) X-Buffer.compact() does not discard mark as specified
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P3
  • Affected Version: 6,7
  • OS: generic,linux
  • CPU: generic,x86
  • Submit Date: 2007-08-16
  • Updated Date: 2017-05-16
  • Resolved Date: 2011-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
JDK 7
7 b42Fixed
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