Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.9
-
None
-
None
Description
The compiler generates ruby code which uses a constant called FIELDS. It also converts each thrift field into a constant. So a field called "fields" will end up generating a constant with same name, producing the warning.
$ cat foo.thrift struct Foo { 1: list<string> fields; } $ thrift --gen rb -out . foo.thrift $ irb > require './foo_types' /Users/ben/code/eqm/ruby-storm-connector/foo_types.rb:13: warning: already initialized constant FIELDS => true
Attachments
Issue Links
- is related to
-
THRIFT-1866 java compiler generates non-compiling code with const's defined in a thrift file whose name includes non-identifier chars
- Closed