Changeset e02a0df


Ignore:
Timestamp:
Jan 10, 2019 2:17:18 PM (18 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
0c15936
Parents:
0d330ca
Message:

NTCP: Avoid Java 8/9 bootclasspath issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/ntcp/EventPumper.java

    r0d330ca re02a0df  
    66import java.net.InetSocketAddress;
    77import java.nio.ByteBuffer;
     8import java.nio.Buffer;
    89import java.nio.channels.CancelledKeyException;
    910import java.nio.channels.ClosedChannelException;
     
    651652                boolean keepReading = !buf.hasRemaining();
    652653                // ZERO COPY. The buffer will be returned in Reader.processRead()
    653                 buf.flip();
     654                // not ByteBuffer to avoid Java 8/9 issues with flip()
     655                ((Buffer)buf).flip();
    654656                FIFOBandwidthLimiter.Request req = _context.bandwidthLimiter().requestInbound(read, "NTCP read"); //con, buf);
    655657                if (req.getPendingRequested() > 0) {
Note: See TracChangeset for help on using the changeset viewer.