[
https://issues.apache.org/jira/browse/AVRO-2579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17117012#comment-17117012
]
Hudson commented on AVRO-2579:
------------------------------
FAILURE: Integrated in Jenkins build AvroJava #892 (See
[https://builds.apache.org/job/AvroJava/892/])
[AVRO-2579]: Fix tests by sorting fields for deterministic order (dan:
[https://github.com/apache/avro/commit/a6a0346b4aae937f8e19e928d7c45f85cde09ba2])
* (edit) lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflect.java
* (edit) lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectData.java
> Test can fail with a different order of fields reflected
> --------------------------------------------------------
>
> Key: AVRO-2579
> URL: https://issues.apache.org/jira/browse/AVRO-2579
> Project: Apache Avro
> Issue Type: Bug
> Reporter: contextshuffling
> Priority: Minor
> Fix For: 1.10.0
>
>
> {{org.apache.avro.reflect.TestReflect#testAvroDoc compares the toString()
> version of the DocTest.class. It uses java.lang.Class.getDeclaredFields() to
> get the fields. However, this API does not guarantee the order of fields that
> gets returned. So test may fails due to a different order.}}
> {{https://github.com/contextshuffling/avro/blob/f9399780bfafd46bce1292da314f15b90f869572/lang/java/avro/src/test/java/org/apache/avro/reflect/TestReflect.java#L1319}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)