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

Hudson commented on THRIFT-2215:
--------------------------------

SUCCESS: Integrated in Thrift #922 (See 
[https://builds.apache.org/job/Thrift/922/])
THRIFT-2215 Generated HTML/Graphviz lists referenced enum identifiers as 
UNKNOWN. (jensg: rev 27148dee980b396afee80bc7e5ce704443de4408)
* compiler/cpp/src/generate/t_html_generator.cc
* compiler/cpp/src/generate/t_gv_generator.cc


> Generated HTML/Graphviz lists referenced enum identifiers as UNKNOWN.
> ---------------------------------------------------------------------
>
>                 Key: THRIFT-2215
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2215
>             Project: Thrift
>          Issue Type: Bug
>          Components: Graphviz - Compiler, HTML - Compiler
>    Affects Versions: 0.9
>            Reporter: Hans Sjunnesson
>            Assignee: Jens Geyer
>            Priority: Minor
>             Fix For: 0.9.2
>
>         Attachments: THRIFT-2215_const_enums_UNKNOWN_with_html_and_gv.patch
>
>
> The following is a sample thrift file which illustrates the problem:
> {code}
> enum TestEnum {
>   ONE,
>   TWO,
>   THREE,
>   FOUR,
> }
> const map<TestEnum,string> TestMap = {
>   TestEnum.ONE: "one",
>   TestEnum.TWO: "two",
>   Testenum.THREE: "three",
>   TestEnum.FOUR: "four",
> }
> struct TestModel {
>   1: TestEnum field = TestEnum.THREE;
> }
> {code}
> I then generated HTML output from this via {{thrift --gen html foo.thrift}}.
> The constant map {{TestMap}} lists the identifier enums as {{UNKNOWN}}:
> bq. { UNKNOWN = "one", UNKNOWN = "two", UNKNOWN = "three", UNKNOWN = "four" }
> It's the same thing with the default value of the struct:
> {code}
> Key   Field   Type    Description     Requiredness    Default value
> 1     field   TestEnum                default UNKNOWN
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to