avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sharad Agarwal (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AVRO-732) Generated protocol's method should not throw AvroRemoteException
Date Thu, 13 Jan 2011 09:26:47 GMT

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

Sharad Agarwal commented on AVRO-732:

More details and Example. 
a) For idl:
  void test();
Generated code is:
  public void test() throws AvroRemoteException;

b) For idl:
  void test1() throws TestError;
Generated code is:
  public void test1() throws AvroRemoteException, TestException;

The generated code should add the throws clause only for the errors defined in idl. 

For above example the generated code should be:
a) public void test();
b) public void test1() throws TestException;

> 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
> 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.
You can reply to this email to add a comment to the issue online.

View raw message