Skip to content

Explicitly cast ByteBuffer in clear() call to Buffer. - #5886

Closed
meisterT wants to merge 4 commits into
bazelbuild:masterfrom
meisterT:master
Closed

meisterT wants to merge 4 commits into
bazelbuild:masterfrom
meisterT:master

Conversation

@meisterT

Copy link
Copy Markdown
Member

This works around the following error:
java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
at com.google.devtools.build.lib.profiler.Profiler$BinaryFormatWriter.run(Profiler.java:949)
at java.lang.Thread.run(Thread.java:748)

JDK 9 introduced an overloaded methods with covariant return type.

This works around the following error:
java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
	at com.google.devtools.build.lib.profiler.Profiler$BinaryFormatWriter.run(Profiler.java:949)
	at java.lang.Thread.run(Thread.java:748)

JDK 9 introduced an overloaded methods with covariant return type.
@meisterT
meisterT requested a review from a team as a code owner August 14, 2018 12:53
@meisterT
meisterT requested review from buchgr and iirina August 14, 2018 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants