JDK-2175186 : (fc) FileChannelImpl.isAMappedBufferField not used
  • Type: Backport
  • Backport of: JDK-6769976
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2009-04-01
  • Updated: 2010-04-07
  • Resolved: 2009-04-21
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 Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u14 b05Fixed 7Fixed
Comments
SUGGESTED FIX @@ -37,13 +37,10 @@ private static NativeDispatcher nd; // Memory allocation size for mapping buffers private static long allocationGranularity; - // Cached field for MappedByteBuffer.isAMappedBuffer - private static Field isAMappedBufferField; - // File descriptor private FileDescriptor fd; // File access mode (immutable) private boolean writable; @@ -1229,10 +1226,8 @@ static { Util.load(); allocationGranularity = initIDs(); nd = new FileDispatcher(); - isAMappedBufferField = Reflect.lookupField("java.nio.MappedByteBuffer", - "isAMappedBuffer"); } }
09-04-2009

EVALUATION Backport to 6u14 to reduce the static initializer work.
01-04-2009