Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java9 compatibility issue #128

Open
dizzzz opened this issue Jan 4, 2018 · 0 comments
Open

Java9 compatibility issue #128

dizzzz opened this issue Jan 4, 2018 · 0 comments

Comments

@dizzzz
Copy link
Contributor

dizzzz commented Jan 4, 2018

in org.redline_rpm.ReadableChannelWrapper#read

public int read( final ByteBuffer buffer) throws IOException {
  final int read = channel.read( buffer);
  for ( Consumer< ?> consumer : consumers.values()) consumer.consume(( ByteBuffer) buffer.duplicate().flip());
  return read;
}

results in

java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
	at org.redline_rpm.ReadableChannelWrapper.read(ReadableChannelWrapper.java:30) ~[redline-1.2.7-SNAPSHOT.jar:?]
	at org.redline_rpm.Util.fill(Util.java:75) ~[redline-1.2.7-SNAPSHOT.jar:?]
	at org.redline_rpm.Util.fill(Util.java:60) ~[redline-1.2.7-SNAPSHOT.jar:?]
	at org.redline_rpm.header.Lead.read(Lead.java:59) ~[redline-1.2.7-SNAPSHOT.jar:?]
	....
	Suppressed: java.io.IOException: There are '2' unfinished operations.
		at org.redline_rpm.ChannelWrapper.close(ChannelWrapper.java:214) ~[redline-1.2.7-SNAPSHOT.jar:?]
		at org.redline_rpm.ReadableChannelWrapper.close(ReadableChannelWrapper.java:42) ~[redline-1.2.7-SNAPSHOT.jar:?]

when compiled with Java9 and running on Java8. See plasma-umass/doppio#497

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant