thrift/test/java
David Reiss 3b15ebc251 Add support for .equals() to Java structs.
- Add a new method to t_java_generator that generates a .equals() method.
- Add a correct but useless implementation of hashCode for structs.
  (This is required by conventino when overriding .equals().)
- Add java_package to DebugProtoTest and OptionalRequiredTest.
- Add a new structure to OptionalRequiredTest to assist testing the behavior
  of .equals() with respect to null and unset fields.
- Clean up test/java/build.xml a bit.  (It still has a ways to go.)
- Add EqualityTest.java to test .equals().
- Add IdentityTest.java to test that writing and reading a structure
  preserves equality.

Tested by runnint atn test.
I also looked at the generated code for OptionalRequiredTest.thrift.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665541 13f79535-47bb-0310-9956-ffa450edef68
2008-03-02 06:29:19 +00:00
..
src Add support for .equals() to Java structs. 2008-03-02 06:29:19 +00:00
build.xml Add support for .equals() to Java structs. 2008-03-02 06:29:19 +00:00
Makefile.am Make "make clean" rules a bit more standard. 2008-02-24 16:42:18 +00:00
TestClient Change test scripts for Java to point to libthrift.jar in source tree. 2008-02-18 02:11:39 +00:00
TestServer Change test scripts for Java to point to libthrift.jar in source tree. 2008-02-18 02:11:39 +00:00