You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2015/07/25 15:25:10 UTC

[2/2] thrift git commit: THRIFT-3255 Thrift generator doesn't exclude 'package' keyword for thrift property names breaking java builds Client: Compiler General Patch: Jens Geyer

THRIFT-3255 Thrift generator doesn't exclude 'package' keyword for thrift property names breaking java builds
Client: Compiler General
Patch: Jens Geyer

This closes #561


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/e33d1652
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/e33d1652
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/e33d1652

Branch: refs/heads/master
Commit: e33d16520a483e49e5f73a9ea2091cfc686fb619
Parents: bf0b483
Author: Jens Geyer <je...@apache.org>
Authored: Fri Jul 24 02:14:43 2015 +0200
Committer: Jens Geyer <je...@apache.org>
Committed: Sat Jul 25 15:23:45 2015 +0200

----------------------------------------------------------------------
 compiler/cpp/src/thriftl.ll | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/e33d1652/compiler/cpp/src/thriftl.ll
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/thriftl.ll b/compiler/cpp/src/thriftl.ll
index 11ba1b9..08b5c59 100644
--- a/compiler/cpp/src/thriftl.ll
+++ b/compiler/cpp/src/thriftl.ll
@@ -258,6 +258,7 @@ literal_begin (['\"])
 "nil"                { thrift_reserved_keyword(yytext); }
 "not"                { thrift_reserved_keyword(yytext); }
 "or"                 { thrift_reserved_keyword(yytext); }
+"package"            { thrift_reserved_keyword(yytext); }
 "pass"               { thrift_reserved_keyword(yytext); }
 "public"             { thrift_reserved_keyword(yytext); }
 "print"              { thrift_reserved_keyword(yytext); }