You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2010/10/28 00:18:21 UTC

[jira] Updated: (THRIFT-447) Make an abstract base Client class so we can generate less code

     [ https://issues.apache.org/jira/browse/THRIFT-447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Duxbury updated THRIFT-447:
---------------------------------

    Attachment: thrift-447.patch

This patch restructures the code generator to rely on some abstract base classes for clients, processors, and process functions. It makes the generated code marginally smaller and a lot cleaner.

> Make an abstract base Client class so we can generate less code
> ---------------------------------------------------------------
>
>                 Key: THRIFT-447
>                 URL: https://issues.apache.org/jira/browse/THRIFT-447
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Compiler, Java - Library
>            Reporter: Bryan Duxbury
>            Priority: Minor
>         Attachments: thrift-447.patch
>
>
> The Java generator currently uses the generator to create all of the contents of the myService.Client class, including boring stuff like the constructor and instance variables. It seems like we could just factor this common base stuff out into a BaseClient that lives in the library and simplify the generator accordingly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.