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 2022/06/17 16:34:00 UTC

[jira] [Commented] (AVRO-3076) Wrong javadoc documentation for useCustomCoders

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

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

Commit 5a80e32e6bba7d44fef0edfe333ff62c55da1392 in avro's branch refs/heads/master from Rens Groothuijsen
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=5a80e32e6 ]

AVRO-3076: Fix incorrect Javadoc regarding custom coder defaults (#1715)



> Wrong javadoc documentation for useCustomCoders
> -----------------------------------------------
>
>                 Key: AVRO-3076
>                 URL: https://issues.apache.org/jira/browse/AVRO-3076
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.10.1
>            Reporter: Emilio Jose Mena Cebrian
>            Assignee: Rens Groothuijsen
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.11.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Javadoc says that useCustomCoder defaults to true:
>  
>  
> {code:java}
>   /**
>            * Retrieve the current value of the custom-coders feature flag. Defaults to
>            * <code>true</code>, but this default can be overriden using the system
>            * property <code>org.apache.avro.specific.use_custom_coders</code>, and can be
>            * set dynamically by {@link SpecificData#useCustomCoders()}. See <a
>            * href="https://avro.apache.org/docs/current/gettingstartedjava.html#Beta+feature:+Generating+faster+code"Getting
>            * started with Java</a> for more about this feature flag.
>            */
> {code}
> But in fact it defaults to "false"
>  
>  
> {code:java}
>  private boolean useCustomCoderFlag = Boolean         .parseBoolean(System.getProperty("org.apache.avro.specific.use_custom_coders", "false"));
>       
>       
>         
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)