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

Hudson commented on AVRO-1465:
------------------------------

SUCCESS: Integrated in AvroJava #446 (See 
[https://builds.apache.org/job/AvroJava/446/])
AVRO-1465. Java: Improve the error message when union dispatch fails.  
Contributed by Gabriel Reid. (cutting: rev 1577309)
* /avro/trunk/CHANGES.txt
* 
/avro/trunk/lang/java/avro/src/main/java/org/apache/avro/generic/GenericData.java


> Lack of information on error in GenericData#getSchemaName
> ---------------------------------------------------------
>
>                 Key: AVRO-1465
>                 URL: https://issues.apache.org/jira/browse/AVRO-1465
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>            Reporter: Gabriel Reid
>            Assignee: Gabriel Reid
>            Priority: Minor
>             Fix For: 1.7.7
>
>         Attachments: AVRO-1465.patch
>
>
> When the type of a datum cannot be determined in GenericData#getSchemaName, 
> an AvroRuntimeException is thrown (correctly), and the message of the 
> exception contains the string representation of the datum.
> In the odd case that the datum is something that totally doesn't belong 
> there, and it's toString representation doesn't clearly show what it is, it's 
> very difficult to determine what the actual type of the error datum is.
> Including the class name of the unresolvable datum would make debugging 
> situations like this much easier.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to