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

Erlang Thrift test uses wrong IDL file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.3
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: