Hi Jens, Our old compiler predates all of that. It's part of the ASIO-based Thrift version I wrote to support Windows. The README says this:
"Last Modified: 2009-Jan-30" I have done some research in JIRA since posting. It looks like the enum syntax changed in 0.5, so I got 0.4 and 0.5 and am doing a diff to see what changed that would be applicable. But there are a bunch of later JIRA incidents that fixed the sample code, etc., so it might not be as clear cut as I was hoping. I'm also not a lex or yacc guru, so I need to do a little reading there so I can better understand what I'm reading. Sigh. Nothing is ever easy, is it? - Rush On May 14, 2014, at 1:25 PM, Jens Geyer wrote: > > I have an even older IDL file here, the Cassandra 0.6.0 interface from > 2010-04-18 > > > -----Ursprüngliche Nachricht----- From: Jens Geyer > Sent: Wednesday, May 14, 2014 10:24 PM > To: dev@thrift.apache.org > Subject: Re: Can anyone point me to the JIRA for this compiler feature? > > Could you define "old" a bit more? > I found this https://issues.apache.org/jira/browse/THRIFT-1318 > > It's not exactly what you are looking for, but refers to 0.7 back in 2011 > and already has a testcase WITH the prefix. > > > > -----Ursprüngliche Nachricht----- From: Rush Manbert > Sent: Wednesday, May 14, 2014 6:27 PM > To: dev@thrift.apache.org > Subject: Can anyone point me to the JIRA for this compiler feature? > > Hi All, > > I need to do something that uses both the latest and greatest Thrift > compiler and our older version. > > Our IDL files work with the latest compiler except when we try to set a > default value for a struct member by specifying an enum value. With the old > compiler you just used the enum's value name, like this: > > struct foo > { > n: int thisStructMember = MyEnumValue5, > } > > while the newest compiler requires this: > > struct foo > { > n: int thisStructMember = MyEnumName.MyEnumValue5, > } > > It seems like the straightest path to supporting both compiler versions > would be to retrofit the syntax requirement of the newest compiler into our > old version, then change our sources to comply. I suspect this would be > easier for me if I could get my hands on the diff that applied the changes > for the new syntax. > > Can anyone point me at the JIRA incident for this change? > > Thanks, > Rush