Thrift: Make default values for base types work in Java.
authorDavid Reiss <dreiss@apache.org>
Tue, 18 Dec 2007 02:54:06 +0000 (02:54 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 18 Dec 2007 02:54:06 +0000 (02:54 +0000)
commit80a702fa395c3887281407b0d44af5cbe3e3006c
tree1ad490c3d61c464ecb8dc016af1a3b8463f58013
parent677ffc50446082e3cd12bbf3e2cc1364c603429a
Thrift: Make default values for base types work in Java.

Summary:
The Java generator wasn't setting default values for base types
in the zero argument constructor.  This check was probably brought over
from the C++ generator, where base types are given their default values
in the member variable initializer list (or whatever that thing is called).

Blame Rev: Somewhere in the mysterious past.  I tried to find it, but failed.

Reviewed By: mcslee

Test Plan: Recompiled Thrift and thrifted a file that showed the bug.

Revert Plan: ok

Other Notes:
Bug reported by Jake Luciani.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665398 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_java_generator.cc