You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/12/26 17:33:00 UTC

[jira] [Commented] (AVRO-2288) Trevni’s OutputBuffer signature clashes with new ByteArrayOutputStream#writeBytes method

    [ https://issues.apache.org/jira/browse/AVRO-2288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16729120#comment-16729120 ] 

ASF subversion and git services commented on AVRO-2288:
-------------------------------------------------------

Commit fab3d4051c6bf5cacf6bd80895a72332ae5f362f in avro's branch refs/heads/master from Ismaël Mejía
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=fab3d40 ]

AVRO-2288: Refactor OutputBuffer to not throw Exceptions

It aligns this way with its parent class


> Trevni’s OutputBuffer signature clashes with new ByteArrayOutputStream#writeBytes method
> ----------------------------------------------------------------------------------------
>
>                 Key: AVRO-2288
>                 URL: https://issues.apache.org/jira/browse/AVRO-2288
>             Project: Apache Avro
>          Issue Type: Sub-task
>          Components: java
>    Affects Versions: 1.8.2
>            Reporter: Ismaël Mejía
>            Assignee: Ismaël Mejía
>            Priority: Minor
>             Fix For: 1.9.0
>
>
> Java 11 added the new writeBytes method to ByteArrayOutputStream that clashes with the pre-existing one. This can be fixed just by adjusting to the parent signature as well as other methods to not throw Exceptions. The impact should be minimal because this is a package private class.
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project trevni-core: Compilation failure
> [ERROR] /home/ismael/workspace/avro05/lang/java/trevni/core/src/main/java/org/apache/trevni/OutputBuffer.java:[102,15] writeBytes(byte[]) in org.apache.trevni.OutputBuffer cannot override writeBytes(byte[]) in java.io.ByteArrayOutputStream
> [ERROR]   overridden method does not throw java.io.IOException



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)