Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2920

Erlang Thrift test uses wrong IDL file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.3
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Erlang test executes the following statement:

      test/erl/Makefile.am
      .generated: $(THRIFT_FILES)
      	for f in $(THRIFT_FILES) ; do \
      	  $(THRIFT) --gen erl $$f ; \
      	done ; \
      	$(THRIFT) --gen erl:legacynames LegacyNames.thrift
      	touch .generated
      

      Because ThriftTest.thrift and DocTest.thrift both expose a service ThriftTest whose contents do not match, depending on the order of how the system sees the files, the code generated out of DocTest.thrift may overwrite the previously generated code from ThriftTest.thrift.

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              jensg Jens Geyer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: