[ https://issues.apache.org/jira/browse/AVRO-2624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17114420#comment-17114420 ]
Hudson commented on AVRO-2624: ------------------------------ SUCCESS: Integrated in Jenkins build AvroJava #886 (See [https://builds.apache.org/job/AvroJava/886/]) [AVRO-2624] Bunch of casts to just Buffer so that avro built with Java11 (dkulp: [https://github.com/apache/avro/commit/e208f4b2d442bc14aaba3dad86e8122b83a0873c]) * (edit) lang/java/avro/src/main/java/org/apache/avro/data/TimeConversions.java * (edit) lang/java/trevni/core/src/main/java/org/apache/trevni/SnappyCodec.java * (edit) lang/java/trevni/core/src/main/java/org/apache/trevni/InputBuffer.java * (edit) lang/java/ipc-netty/src/main/java/org/apache/avro/ipc/netty/NettyTransportCodec.java * (edit) lang/java/ipc/src/main/java/org/apache/avro/ipc/HttpTransceiver.java * (edit) lang/java/avro/src/main/java/org/apache/avro/util/ReusableByteBufferInputStream.java * (edit) lang/java/tools/src/main/java/org/apache/avro/tool/FromTextTool.java * (edit) lang/java/avro/src/main/java/org/apache/avro/util/RandomData.java * (edit) lang/java/ipc/src/main/java/org/apache/avro/ipc/SocketTransceiver.java * (edit) lang/java/mapred/src/main/java/org/apache/avro/mapred/AvroTextOutputFormat.java * (edit) lang/java/avro/src/main/java/org/apache/avro/file/SnappyCodec.java * (edit) lang/java/avro/src/main/java/org/apache/avro/SchemaBuilder.java * (edit) lang/java/trevni/core/src/test/java/org/apache/trevni/TestAllCodecs.java * (edit) lang/java/ipc/src/main/java/org/apache/avro/ipc/DatagramTransceiver.java * (edit) lang/java/protobuf/src/main/java/org/apache/avro/protobuf/ProtoConversions.java * (edit) lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java * (edit) lang/java/ipc/src/main/java/org/apache/avro/ipc/SaslSocketTransceiver.java * (edit) lang/java/avro/src/main/java/org/apache/avro/util/ByteBufferOutputStream.java * (edit) lang/java/trevni/core/src/main/java/org/apache/trevni/Crc32Checksum.java * (edit) lang/java/avro/src/main/java/org/apache/avro/io/BinaryDecoder.java * (edit) lang/java/avro/src/main/java/org/apache/avro/io/DirectBinaryDecoder.java > Avoid ByteBuffer incompatibility when compiling with JDK9+ > ---------------------------------------------------------- > > Key: AVRO-2624 > URL: https://issues.apache.org/jira/browse/AVRO-2624 > Project: Apache Avro > Issue Type: Bug > Components: java > Reporter: Michael A. Smith > Priority: Major > > Like MRESOLVER-85 and similar, the java implementation suffers from a > compatibility break since java 9. The problem can be seen in the PR for > AVRO-2603, https://github.com/apache/avro/pull/706, which fails for JAVA 11, > but not for 8. > The error is: > {noformat} > Caused by: java.lang.NoSuchMethodError: > java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer; > [py-test] at > org.apache.avro.io.BinaryDecoder.readBytes(BinaryDecoder.java:317) > {noformat} > * This should not occur when artifacts are compiled with JDK8, even if run in > Java 11 runtime. i.e., This shouldn't be a big issue while maven artifacts > are being published with JDK8 (the lowest Java runtime version we support). > * Likewise, this should not occur when artifacts are compiled with JDK11 > (with {{-target 1.8}}) and run in a Java 11 runtime, as with the JAVA=11 > build targets. > * This *will* occur when the artifacts are compiled with JDK11 (with > {{-target 1.8}}) and run in a Java 8 runtime. > * It will be important to fix when Avro publishes artifacts built with JDK11 > and JDK8 is still meant to be supported. -- This message was sent by Atlassian Jira (v8.3.4#803005)