[
https://issues.apache.org/jira/browse/AVRO-732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sébastien Launay updated AVRO-732:
----------------------------------
Attachment: AVRO-732-remove-generated-remote-exception-2012-12-11.patch
I attached a patch for removing the AvroRemoteException from the generated code
than can be found here as well:
https://github.com/slaunay/avro/commits/enhancement/AVRO-732-remove-generated-remote-exception
I changed AvroRemoteException parent class from IOException to RuntimeException
in order to still be able to catch it while keeping the code compiling.
I don't know if this is the best approach but at least we have a base for going
forward now.
> Generated protocol's method should not throw AvroRemoteException
> ----------------------------------------------------------------
>
> Key: AVRO-732
> URL: https://issues.apache.org/jira/browse/AVRO-732
> Project: Avro
> Issue Type: Bug
> Components: java
> Reporter: Sharad Agarwal
> Fix For: 1.8.0
>
> Attachments:
> AVRO-732-remove-generated-remote-exception-2012-12-11.patch
>
>
> If user does NOT define the throws clause in the idl, the code is generated
> with "throws AvroRemoteException" clause. However on throwing the
> AvroRemoteException from the implementation, the serialization fails. This is
> not intuitive to users.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira