commit | 56c4b159f885bd931a27f1a8b78b12696638b17f | [log] [tgz] |
---|---|---|
author | Jens Geyer <jensg@apache.org> | Fri Oct 25 00:33:11 2024 +0200 |
committer | Jens Geyer <Jens-G@users.noreply.github.com> | Fri Oct 25 23:15:24 2024 +0200 |
tree | 4b04674a7e9065b6cff889bb1abff291248c23ab | |
parent | bddaaffb456d4797235d1e90c2cff0386349143a [diff] |
THRIFT-5827 enums in typedefs are not resolved in all cases Client: Delphi Patch: Jens Geyer
diff --git a/compiler/cpp/src/thrift/generate/t_delphi_generator.cc b/compiler/cpp/src/thrift/generate/t_delphi_generator.cc index a8ac506..6703832 100644 --- a/compiler/cpp/src/thrift/generate/t_delphi_generator.cc +++ b/compiler/cpp/src/thrift/generate/t_delphi_generator.cc
@@ -962,6 +962,8 @@ indent_down(); indent(s_enum) << ")" << render_deprecation_attribute(tenum->annotations_, " ", "") << ";" << '\n' << '\n'; indent_down(); + + add_defined_type(tenum); } std::string t_delphi_generator::make_pascal_string_literal(std::string value) {
diff --git a/lib/delphi/test/codegen/run-Pascal-Codegen-Tests.ps1 b/lib/delphi/test/codegen/run-Pascal-Codegen-Tests.ps1 index 961795b..f02afba 100644 --- a/lib/delphi/test/codegen/run-Pascal-Codegen-Tests.ps1 +++ b/lib/delphi/test/codegen/run-Pascal-Codegen-Tests.ps1
@@ -33,7 +33,6 @@ # unexpected but known bugs (TODO: fix them) $KNOWN_BUGS = @( "IgnoreInitialismsTest.thrift", - "JavaDefinitionOrderB.thrift", "NameConflictTest.thrift" )